TorbatYar/frontend
Mortezakoohjani 0d424c500a feat(platform): complete commercial runtime consolidation
Unify commercial runtime ownership across backend and frontend so platform, experience, and hospitality modules use the shared commercial source of truth.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-29 11:11:53 +03:30
..
app feat(platform): complete commercial runtime consolidation 2026-07-29 11:11:53 +03:30
components feat(platform): complete commercial runtime consolidation 2026-07-29 11:11:53 +03:30
docs feat(platform): finalize commercial runtime, platform shell and hospitality production frontend 2026-07-28 20:39:10 +03:30
hooks feat(platform): finalize commercial runtime, platform shell and hospitality production frontend 2026-07-28 20:39:10 +03:30
lib feat(platform): complete commercial runtime consolidation 2026-07-29 11:11:53 +03:30
modules feat(platform): complete commercial runtime consolidation 2026-07-29 11:11:53 +03:30
public Deploy TorbatYar for torbatyar.ir with nginx multi-tenant routing. 2026-07-21 21:43:33 +03:30
scripts feat(platform): complete commercial runtime consolidation 2026-07-29 11:11:53 +03:30
shared Migrate Beauty, Healthcare, and Accounting frontend to modular src/modules architecture. 2026-07-26 22:28:27 +03:30
src feat(healthcare): add backend service and finalize frontend build 2026-07-27 11:38:31 +03:30
styles feat(platform): finalize commercial runtime, platform shell and hospitality production frontend 2026-07-28 20:39:10 +03:30
.dockerignore Deploy TorbatYar for torbatyar.ir with nginx multi-tenant routing. 2026-07-21 21:43:33 +03:30
.eslintrc.json feat(delivery): add Torbat Driver frontend module with real API wiring. 2026-07-27 12:02:01 +03:30
Dockerfile.dev Deploy TorbatYar for torbatyar.ir with nginx multi-tenant routing. 2026-07-21 21:43:33 +03:30
next-env.d.ts Deploy TorbatYar for torbatyar.ir with nginx multi-tenant routing. 2026-07-21 21:43:33 +03:30
next.config.mjs Migrate Beauty, Healthcare, and Accounting frontend to modular src/modules architecture. 2026-07-26 22:28:27 +03:30
package-lock.json Migrate Beauty, Healthcare, and Accounting frontend to modular src/modules architecture. 2026-07-26 22:28:27 +03:30
package.json feat(payment-frontend): ship Torbat Pay admin portal for MVP 14.0-14.5 2026-07-27 18:35:07 +03:30
postcss.config.mjs Deploy TorbatYar for torbatyar.ir with nginx multi-tenant routing. 2026-07-21 21:43:33 +03:30
README.md Ship enterprise Accounting FE/API with CRUD parity and production wiring. 2026-07-24 15:26:43 +03:30
tailwind.config.ts Migrate Beauty, Healthcare, and Accounting frontend to modular src/modules architecture. 2026-07-26 22:28:27 +03:30
tsconfig.json Migrate Beauty, Healthcare, and Accounting frontend to modular src/modules architecture. 2026-07-26 22:28:27 +03:30
tsconfig.tsbuildinfo Migrate Beauty, Healthcare, and Accounting frontend to modular src/modules architecture. 2026-07-26 22:28:27 +03:30

Frontend (Next.js)

اپلیکیشن frontend کاملاً جدا از backend است.

Responsibilities

  • UI, Dashboard, Forms, Pages, Components
  • State management, API clients, Theme (white-label)

Rules

  • No FastAPI, SQLAlchemy, Alembic, or business logic in this folder.
  • Talk to backend only through REST APIs.
  • Primary typed client: lib/api.ts. Helper client may also exist as lib/api-client.ts.
  • Brand from public/theme.config.json and/or public tenant theme APIs — never hardcode.

Run

Preferred (full stack):

# from repo root
docker compose up -d --build

UI-only debug:

cd frontend
npm install
npm run dev

Frontend: http://localhost:3000

Stack

  • Next.js 15.5.18
  • React 19, TypeScript, TailwindCSS

Structure

frontend/
├── app/          # Next.js App Router
├── components/
├── hooks/
├── lib/          # api.ts, auth, theme, tenant-host
├── styles/
└── public/