DreamFitness — система управления фитнес-клубом (backend + frontend).
- Node.js v24.x
- Docker Desktop
Two independent projects (not npm workspaces), each with own package.json:
backend/— NestJS monorepo: api-gateway, auth-service, training-service, booking-service, notification-servicefrontend/— React 19 + Vite
- After TS/JS changes: run
npm run tsthennpm run lintin the corresponding directory - After backend API changes: remind user to run
cd frontend && npm run gen:types - Backend DTOs: save in
backend/libs/contracts/srcorganized by domain - Frontend
src/types/api.generated.tsis auto-generated — do not edit
cd backend && npm install && npm run dev
cd frontend && npm install && npm run devAPI: http://localhost:3000 | Swagger: http://localhost:3000/api/docs | Frontend: http://localhost:5173
npm run start:test:infra # Start PostgreSQL container
npm run test:setup # Create test DB + run migrations
npm run test:unit # Unit tests (no DB needed)
npm run test:e2e # E2E tests (requires test DB)
npm run stop:test:infra # Stop containers- PRD, Backend ADR, Frontend ADR
- Detailed rules: backend/AGENTS.md, frontend/AGENTS.md