Backend Module Workflow
external-readyContract-first flow for creating and wiring backend modules.
Recommended flow
- Scaffold API/feature slice first when possible.
- Implement domain/application/infrastructure layers.
- Wire module providers and ports in Nest module.
- Bind adapters through contract-first oRPC router.
Fast-path commands
bun run scaffold:orpc --audience admin --name reports-list --method GET
bun run scaffold:vertical-slice --audience admin --capability reports --name list --method GETLayer boundaries
domain: entities, value objects, domain errors/eventsapplication: use cases + portsinfrastructure: repository/provider implementationsinterface: transport adapters
Verification
bun run typecheck
bun run check:contract-first
bun run check:projection-policy
bun run depcruise:backendSee complete reference in docs/guides/creating-a-module.md.