TorbatYar multi-tenant SaaS platform
Go to file
Mortezakoohjani 047cd17afd fix(frontend): pass all BFF service URLs to frontend container
Wire CRM, loyalty, communication, and delivery service URLs into docker-compose
so Next.js API proxies reach Docker network hosts instead of localhost fallbacks.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-27 13:28:50 +03:30
backend Fix experience-service migration revision IDs exceeding Alembic varchar(32) limit. 2026-07-27 12:42:32 +03:30
docs feat(platform): seed service registry, deploy all modules, and fix homepage catalog. 2026-07-27 12:39:51 +03:30
docs-runtime feat(platform): seed service registry, deploy all modules, and fix homepage catalog. 2026-07-27 12:39:51 +03:30
frontend feat(platform): seed service registry, deploy all modules, and fix homepage catalog. 2026-07-27 12:39:51 +03:30
infrastructure fix(frontend): pass all BFF service URLs to frontend container 2026-07-27 13:28:50 +03:30
scripts feat(platform): seed service registry, deploy all modules, and fix homepage catalog. 2026-07-27 12:39:51 +03:30
.env.example fix(frontend): pass all BFF service URLs to frontend container 2026-07-27 13:28:50 +03:30
.gitignore Ship enterprise Accounting FE/API with CRUD parity and production wiring. 2026-07-24 15:26:43 +03:30
docker-compose.yml fix(frontend): pass all BFF service URLs to frontend container 2026-07-27 13:28:50 +03:30
README.md feat(platform): seed service registry, deploy all modules, and fix homepage catalog. 2026-07-27 12:39:51 +03:30
TorbatYar.code-workspace Deploy TorbatYar for torbatyar.ir with nginx multi-tenant routing. 2026-07-21 21:43:33 +03:30

TorbatYar SuperApp SaaS Platform

پلتفرم SaaS چندمستأجری (Multi-tenant)، ماژولار، API-first و microservice-ready.

برند، رنگ‌ها و تنظیمات هیچ‌کدام در کد hardcode نشده‌اند و همگی از .env / config / دیتابیس خوانده می‌شوند.

Documentation (source of truth)

شروع از docs/README.md.

Document Responsibility
docs/architecture/architecture.md Architecture overview
docs/reference/database-schema.md Database schema reference
docs/reference/services-contracts.md Service contracts
docs/development/developer-guide.md Developer guide
docs/module-registry.md Module registry
docs/ai-framework/ Enterprise / AI Development Framework (implementation lifecycle; production-ready by default)
docs/provider-registry.md Provider registry
docs/glossary.md Glossary
docs/progress.md Completed work
docs/next-steps.md Immediate next milestone
docs/roadmap.md Future roadmap
docs/deployment/ Deployment runbooks

Architecture at a glance

  • Mandatory Frontend/Backend separationbackend/ and frontend/ are independent apps.
  • Database-per-service — no cross-DB queries (ADR-001).
  • Inter-service communication — REST, Webhook, Async Event, Outbox/Inbox only.
  • Multi-tenancy — business tables carry tenant_id.

Project structure

TorbatYar/
├── backend/
│   ├── core-service/       # FastAPI Core Platform
│   ├── shared-lib/         # Shared backend library
│   └── services/           # Identity, Accounting, CRM, Loyalty, Communication, Sports Center (+ future)
├── frontend/               # Next.js
├── docs/                   # Documentation architecture (canonical)
├── infrastructure/         # Nginx, Keycloak, deploy env samples
├── scripts/                # Ops / verification scripts
├── docker-compose.yml
├── .env.example
└── README.md

Quick start (Docker)

cp .env.example .env
docker compose up -d --build

Details: docs/development/developer-guide.md.

Tests (Backend)

cd backend/core-service
pytest -q

Current status

See docs/progress.md. Next milestone: docs/next-steps.md.