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 3 months ago
cmd/vocab Move internal stuff to the "internal" folder 6 months ago
internal delete and rename deck 3 months ago
mailauth Remove superfluous debug messages 5 months ago
ui Fix indentation from #15 3 months ago
.gitignore Fix upload issues in the backend 5 months ago
Dockerfile Fix Docker build with Pkger & Vue dependencies 5 months ago Document the behaviour of the pre-commit hook 5 months ago Add TODO file 6 months ago
docker-compose.yml Allow uploading images via the API 5 months ago
go.mod Allow uploading images via the API 5 months ago
package.go Fix pkger issue 6 months 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.