TorbatYar/backend/README.md
Mortezakoohjani 800b0ba2c5 Deploy TorbatYar for torbatyar.ir with nginx multi-tenant routing.
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>
2026-07-21 21:43:33 +03:30

865 B

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