Backend-for-Frontend gateway that fronts all client traffic and orchestrates calls to domain services.
Scripts#
npm run dev— Nodemon with TypeScript sources.npm run build— TypeScript build.npm test— Jest (ESM viajest.config.cjs, usesapp.inject()).
Development notes#
- Keep client-facing routes here; downstream service calls must be via REST (no cross-service imports).
- Update
openapi/openapi.yamlwhen adding/altering endpoints and runnpm run openapi:validate. - Coverage target: ≥70% global (CI enforced).