AGENTS.md (apps/api)
NestJS REST API.
Commands
- Dev:
pnpm --filter @acme/api start:dev(http://localhost:4000) - Test:
pnpm --filter @acme/api test; e2e:pnpm --filter @acme/api test:e2e(needs docker compose services)
Rules
- One module per domain (
orders,catalog,payments); controllers thin, logic in services. - Validate DTOs with class-validator; global
ValidationPipeuseswhitelist: true. - Every endpoint has a guard; public endpoints use the explicit
@Public()decorator. - Database access through the
@acme/dbclient only.