Documentation Sections
Onboarding
Start here — betting basics, exposure, market types, user roles, and local dev setup.
Architecture
System topology, request lifecycle, cluster mode, and middleware stack.
Database
PostgreSQL 16 schema, ERD, table docs, ltree hierarchy, and query patterns.
Modules
All 50+ NestJS modules — auth, bet, wallet, bonus, casino, exports, and more.
API Reference
Every endpoint — method, auth guards, request body, response shape, and errors.
Security
JWT lifecycle, RBAC, MFA, uniqueKey session invalidation, and input validation.
Deployment
Docker Compose setup, environment variables, and dev / staging / production configs.
Operations
Runbooks, Sentry error tracking, BullMQ health, and incident response playbooks.
Code Quality
Known tech debt, performance risks, and engineering recommendations.