Operations
| Endpoint | Purpose |
|---|---|
GET /health |
Database and Redis readiness. Returns 503 if either is down |
GET /metrics |
Prometheus counters, including webhook events processed or failed and payments succeeded or failed |
GET /api/docs |
Swagger UI |
Logs are structured JSON from Pino. Set LOG_LEVEL to control verbosity. In
development they’re pretty-printed on a single line.
Common commands
Section titled “Common commands”npm run build # production buildnpm start # run the buildnpm run migration:run # apply pending migrationsnpm test # unit testsDocker
Section titled “Docker”docker compose up runs the service, Postgres, Redis and pgAdmin together.
The service image is a multi-stage production build.