Wire production domain, CORS for tenant subdomains, celery volume mounts, and nginx reverse proxy configs for apex, API, identity, auth, and wildcard tenants. Co-authored-by: Cursor <cursoragent@cursor.com> |
||
|---|---|---|
| .. | ||
| core-service | ||
| services | ||
| shared-lib | ||
| README.md | ||
Backend
تمام کد منبع backend فقط در این پوشه قرار دارد.
ساختار
backend/
├── core-service/ # سرویس Core Platform (FastAPI)
├── shared-lib/ # کتابخانه مشترک بین سرویسهای backend
└── services/ # placeholder سرویسهای آینده
قوانین (اجباری)
- هیچ کد React، Next.js، Tailwind، UI Component یا HTML در backend نیست.
- frontend در پوشه جداگانه
frontend/قرار دارد. - ارتباط با frontend فقط از طریق REST API.
راهاندازی
cd backend/core-service
python -m venv .venv
pip install -r requirements.txt
alembic upgrade head
uvicorn app.main:app --reload
تستها
cd backend/core-service
pytest -q