You nedd to have:
- golang-migrate gnupg
- docker v27.3.1
- docker-compose v2.30.3
- go v1.25.6 (brew install go)
- node v23.2.0 (nvm is better)
- npm 10.9.0
Optional (for releasing):
- git-cliff (changelog generation)
- goreleaser (GitHub releases)
Create your .env based on env.template you can run:
cp .env.template .envRun these commands first(you need the key for the ecryption):
make db/decrypt
make install
make db_init
make db_start
make db/encrypt
make liveRuns the app and looks for changes on 127.0.0.1:7331 for live reload.
make migration_create {init_message}make migration_upmake migration_downYou did a shity make migration up and you need to fix it don't wory do theses steps (for VERSION_NUMBER=18):
make migration_fix VERSION={VERSION_NUMBER}
make migration_downNow you are in state VERSION_NUMBER - 1. If your rollback ix the database you can now run:
make migration_upIf not you can debug and fix !
# Arch Linux
yay -S git-cliff goreleaser-binmake release # auto-detect bump type from conventional commits, update CHANGELOG.md, commit, tag
make release/major # force major bump
make release/minor # force minor bump
make release/patch # force patch bump
make release/push # git push origin master --tags
make release/github # create GitHub release (requires GITHUB_TOKEN)
make changelog # regenerate full CHANGELOG.mdThe release target analyzes commits since the last tag:
BREAKING CHANGEor!:→ major bumpfeat:→ minor bumpfix:→ patch bump
Push to branch staging to deploy on this url https://round-timing-staging.web-rows.ovh/
The app is deployed as a Dockerfile resource on Coolify.
- New Resource → Dockerfile → select the repo
- Branch:
stagingormaster - Port:
2468 - Domain:
https://your-domain.com:2468 - Environment variables: copy from
.env.templateand fill in values
See monitoring/README.md for Loki + Grafana deployment instructions.