Add the Healthcare platform backend (phases 13.0–13.7) with Alembic migration revision fix, production deploy script, validation reports, shared UI exports, and loyalty list page client directives so Next.js build succeeds. Co-authored-by: Cursor <cursoragent@cursor.com> |
||
|---|---|---|
| .. | ||
| core-service | ||
| services | ||
| shared-lib | ||
| README.md | ||
Backend
تمام کد منبع backend فقط در این پوشه قرار دارد.
Structure
backend/
├── core-service/ # Core Platform (FastAPI) — Active
├── shared-lib/ # Shared backend library
└── services/ # identity-access (Active) + future module placeholders
Rules (mandatory)
- No React, Next.js, Tailwind, UI components, or HTML pages in backend.
- Frontend lives only in
frontend/. - Communicate with frontend only via versioned REST APIs.
- Database-per-service; no cross-DB access.
- Follow
docs/development/project-principles.mdanddocs/architecture/module-boundaries.md.
Run Core
cd backend/core-service
python -m venv .venv
pip install -r requirements.txt
alembic upgrade head
uvicorn app.main:app --reload
Tests
cd backend/core-service
pytest -q