Backend Onboarding
This track is for developers working mainly in NestJS services and queue workers.
Main repos
Core services:
mvp1-authentication-servicemvp1-setting-servicemvp2-data-servicemvp3-ticket-servicemvp3-gsb-servicemvp3-ngoss-servicemvp3-nocgrid-servicemvp3-nocpro-servicemvp3-tmf-servicemvp6-vital-service
Queue workers:
mvp3-caution-report-queue-servicemvp3-changedp-queue-servicemvp3-ctt-queue-servicemvp3-gsb-queue-servicemvp3-kci-queue-servicemvp6-tass-queue-servicemvp6-vital-queue-service
What to install
- Node.js
pnpm- Git submodule support
Shared setup pattern
Most backend repos use:
git submodule update --init --recursive
cd share-entity
git checkout development
cd ..
pnpm install
Config files
Usually:
- copy
.env.exampleto.env - or copy
.env.sampleto.envfor queue workers
Infra you will likely need
- MariaDB
- Redis
- RabbitMQ
Main local commands
Run one service:
pnpm run start:dev
Build:
pnpm run build
Tests:
pnpm run test
pnpm run test:e2e
pnpm run test:cov
Minimum backend to start
Team guidance says the minimum backend is authentication.
In practice, backend work usually means:
- auth service for auth-related work
- one target domain service
- RabbitMQ if queue behavior is involved
- Redis if cache or lock behavior is involved
- DB access for almost all service work
Recommended reading order
- Local Runtime Matrix
- Source-Confirmed Mappings
- your target service page under
Services - Queue Services if async flow is involved
Common backend tasks
- add or change controller endpoints
- change DB access in
data/providers - inspect route prefixes in
routing.module.ts - trace RMQ producer or consumer behavior
- inspect Swagger docs endpoints per service
Common backend gotchas
- port conflicts on default
3004 - queue worker not started for async flow
- missing replica DB env vars
- missing RabbitMQ config
- mismatch between service code and
share-entitybranch