Start Infrastructure
Run TimescaleDB and Redis via Docker:Backend
Run the server
http://localhost:8080.For hot reload during development, use air:.air.toml.Frontend
Configure backend URL
The frontend needs to know where the backend is. Set in your environment or
.env.local:Useful Commands
| Command | Description |
|---|---|
go run ./cmd/server | Start backend |
cd apps/web && pnpm dev | Start frontend |
go test ./... | Run backend tests |
make check | Fast quality gate (fmt, vet, lint, test) |
make lint | Run staticcheck |
make coverage | Generate coverage report |
Database Migrations
Migrations run automatically on server startup. The server reads all.sql files from the migrations/ directory and applies them in order.
To verify migrations against a real database: