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>
32 lines
865 B
Markdown
32 lines
865 B
Markdown
# 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.
|
|
|
|
## راهاندازی
|
|
```bash
|
|
cd backend/core-service
|
|
python -m venv .venv
|
|
pip install -r requirements.txt
|
|
alembic upgrade head
|
|
uvicorn app.main:app --reload
|
|
```
|
|
|
|
## تستها
|
|
```bash
|
|
cd backend/core-service
|
|
pytest -q
|
|
```
|