Tutorials
Three numbered recipes for the changes a contributor makes most often. Each follows the
repository’s own conventions (CLAUDE.md: route patterns, validation, decorators) and ends with
the entry the change adds to this site: the pages below are registers, and a change that is not in
its register is a change the next reader cannot find.
| Recipe | You change | It ends with |
|---|---|---|
| Adding an endpoint | A route, a Joi schema, a service method, tests | A row in the module catalogue, a row in the endpoint access register, a row in the domain’s operation table |
| Adding an event selector | A selector class and a second handler on a route | A row in the engagement register |
| Adding an instance | A settings preset and an env file | The onboarding checklist completed |
Before you start, have the backend running as in Setup and have sent the requests on First requests. The vocabulary is in the Glossary; the request path your code joins is in Request lifecycle.
Two rules apply to every recipe:
- TypeScript compile errors only while you work. Lint and format run on save and commit.
- Tests go with the code. Mocha and
assert, intest/at the same path depth as the file under test; run one file withnpx cross-env DB_PORT=5555 NODE_ENV=testing DOT_ENV_CONFIG=test.env npx mocha --grep "pattern".
Last updated on