Repo rules
Commands
- Install:
cd famcare-backend && npm install - Dev:
cd famcare-backend && npm run dev - Start:
cd famcare-backend && npm start - Schema check:
cd famcare-backend && npm run check - Unit tests:
cd famcare-backend && npm test - Unit tests (watch):
cd famcare-backend && npm run test:watch
Conventions
- Use JavaScript (ESM) for backend code
- No new dependencies without asking
- Reuse existing API patterns
- Keep changes minimal
- Add tests for all new behavior
Documentation Navigation
- Repo map:
README.md - Active execution status:
docs/execution/STATUS.md - Feature plans:
docs/execution/features/ - Phase history:
docs/execution/phases/ - Product/architecture context:
docs/product/anddocs/architecture/
Source of Truth Priority
- Runtime code and schema (
famcare-backend/prisma/schema.prisma) - Backend implementation contract (
famcare-backend/CLAUDE.md) - Product intent (
docs/product/prd.md) - Drift and decisions (
docs/decisions/DECISION_LOG.md) - Historical execution plans (
docs/execution/phases/)
Done means
- Relevant tests pass
- Prisma schema validates (
npm run check) - Include summary of changed files and open issues