You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Moritz Marquardt bf01453489 Merge pull request 'delete and rename deck' (#15) from feature/delete into master 11 months ago
cmd/vocab Move internal stuff to the "internal" folder 1 year ago
internal delete and rename deck 11 months ago
mailauth Remove superfluous debug messages 1 year ago
ui Fix indentation from #15 11 months ago
.gitignore Fix upload issues in the backend 1 year ago
Dockerfile Fix Docker build with Pkger & Vue dependencies 1 year ago Document the behaviour of the pre-commit hook 1 year ago Add TODO file 1 year ago
docker-compose.yml Allow uploading images via the API 1 year ago
go.mod Allow uploading images via the API 1 year ago
package.go Fix pkger issue 1 year ago


Getting Started

# 1. Get the repository
git clone && cd vocab

# 2. Start a database
docker run --rm -d -p 5432:5432 -e POSTGRES_DB=vocab -e POSTGRES_PASSWORD=geheim postgres:12-alpine

# 3. Install frontend dependencies
cd ui; npm install; cd .. 

# 4. Build the frontend
cd ui; npm run build; cd ..

# 5. Start the application
go run ./cmd/vocab

Ensure correct code style

echo 'echo "> go fmt ./..." && go fmt ./... && cd ui && npm run clean && cd ..' > .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit

This will be run whenever running git commit, and can be invoked manually using .git/hooks/pre-commit.
Note that you'll have to amend your commit if you don't run the pre-commit hook manually before committing.