TorbatYar/backend/README.md
Mortezakoohjani 12c8615615 Ship enterprise Accounting FE/API with CRUD parity and production wiring.
Adds accounting-service PATCH/archive, fiscal helpers, COA templates and setup status, plus SuperApp Accounting UI (DS, scoreboard, masters, vouchers, ledger, ops modules) with session refresh and HTTPS public API URLs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-24 15:26:43 +03:30

46 lines
1.2 KiB
Markdown

# 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.md`](../docs/development/project-principles.md)
and [`docs/architecture/module-boundaries.md`](../docs/architecture/module-boundaries.md).
## Run Core
```bash
cd backend/core-service
python -m venv .venv
pip install -r requirements.txt
alembic upgrade head
uvicorn app.main:app --reload
```
## Tests
```bash
cd backend/core-service
pytest -q
```
## Related Documents
- [Developer Guide](../docs/development/developer-guide.md)
- [Module Registry](../docs/module-registry.md)
- [Services Contracts](../docs/reference/services-contracts.md)
- [Services README](services/README.md)