Docs

Develop locally

Run the API and web app on your machine with a sample library, then run the checks.

Start a dev environment

You need Docker, Go and pnpm. Run each command from the repository root.

Command What it does
make dev-seed Start Postgres on port 5433 and load the sample library.
make dev-api Start the API on http://127.0.0.1:8090.
make dev-web Start the web app, usually on http://localhost:5173.

Sign in with the account in deploy/dev-seed.env. These values are for local development only. No worker runs in this flow. To change ports, see Host ports.

Run the checks

Command What it does
make test-fast Line check, Go tests, web tests and the OpenAPI smoke check.
make test-go go vet and go test for the API, worker and telemetry modules.
make test-web Web tests, type check, lint and format check.
make lint go vet for each Go module, plus the web and site linters.

Backend changes need tests. Run make dev-reset to throw the sample data away and seed it again.

The repository rules for contributors are in AGENTS.md.