Add frontend/modules/loyalty with types, API client, design system, feature pages and thin App Router routes under app/loyalty/. BFF proxy at app/api/loyalty/. Include loyalty frontend docs. 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