- Prettier formats all frontend code on commit, always adhere to this
- Code Review Comments guide from the Go project should be followed
docker-compose up --build
This solution will require you to pass environment variables or setup the config file, as well as setup and manage the DB yourself.
docker build ./ -f ./build/Dockerfile -t thunderdome:latest
docker run --publish 8080:8080 --name thunderdome thunderdome:latest
To run without docker you will need to first build, then setup the postgres DB, and pass the user, pass, name, host, and port to the application as environment variables or in a config file.
DB_HOST=
DB_PORT=
DB_USER=
DB_PASS=
DB_NAME=
go mod download
go install github.com/swaggo/swag/cmd/[email protected]
npm install
make build
npm run build
swag init -g api/api.go -o swaggerdocs
go build
npm run autobuild
make dev-go
First install go-migrate tool
go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest
Generate new migration files
migrate create -ext sql -dir db/migrations SHORT_DESCRIPTIVE_FILNAME
Run the server and visit http://localhost:8080
Using svelte-i18n Thunderdome now supports Locale selection on the UI (Default en-US)
Adding new locale's involves just a couple of steps.
- First add the locale dictionary json files in
frontend/public/lang/
andfrontend/public/lang/default/
andfrontend/public/lang/friendly/
by copying the en.json in their respective directories and just changing the values of all keys - Second, the locale will need to be added to the locales list used by switcher component
in
frontend/config.js
locales
object