12. The default backend, end to end
@damatjs/default is a complete reference app
demonstrating the whole framework: a user module (Better Auth models),
file-based routes under /api (/api/posts, /api/users/:userId, /api/workflows) plus a top-level /health,
cross-module links/, a user-onboarding saga workflow, Redis usage, and a
Docker setup. Read it alongside this guide as a worked example — most patterns
here are taken directly from it. Its README has the full route and feature list.
A good way to learn Damat: open backend/default/src/ next to these chapters and
trace one feature end to end — its model, its
service, its route, and (for
onboarding) its workflow.