The Application Portal
The Go backend lives in backend/. It connects to Supabase Postgres and can run either directly on your machine or in Docker.
Copy backend/.env.example to backend/.env and set:
PORT- defaults to8080DATABASE_URL- Supabase Session Pooler URL formake runDATABASE_URL_DOCKER- same Supabase Session Pooler URL formake docker-up
From backend/:
make runFor development, make dev watches .go files and automatically rebuilds and
restarts the server on save. It uses air
(configured in backend/.air.toml) and installs it on first
run if it isn't already present.
From backend/:
make devFrom backend/:
make docker-upGET /healthz- liveness check for the app processGET /readyz- readiness check that pings Supabase Postgres
From backend/:
make dev- run with hot reload (rebuilds on file save)make fmt- format Go code and supported docsmake fmt-check- check formatting without changing filesmake lint- rungo vetandgolangci-lintif installedmake test- run Go testsmake build- build the backend binarymake docker-down- stop the Docker Compose stack