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

README.md

Vocab

Getting Started

# 1. Get the repository
git clone https://codeberg.org/zottelchin/vocab.git && 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.