TorbatYar/frontend
Mortezakoohjani 625275e55b feat(healthcare): add backend service and finalize frontend build
Add the Healthcare platform backend (phases 13.0–13.7) with Alembic migration revision fix, production deploy script, validation reports, shared UI exports, and loyalty list page client directives so Next.js build succeeds.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-27 11:38:31 +03:30
..
app feat(communication): add SMS MVP frontend with governance artifacts. 2026-07-27 11:11:25 +03:30
components Link active apps on homepage and refresh landing page design. 2026-07-26 22:48:46 +03:30
docs feat(healthcare): add backend service and finalize frontend build 2026-07-27 11:38:31 +03:30
hooks Migrate Beauty, Healthcare, and Accounting frontend to modular src/modules architecture. 2026-07-26 22:28:27 +03:30
lib feat(loyalty): register Loyalty app in catalog and architecture docs 2026-07-27 11:17:07 +03:30
modules feat(healthcare): add backend service and finalize frontend build 2026-07-27 11:38:31 +03:30
public Deploy TorbatYar for torbatyar.ir with nginx multi-tenant routing. 2026-07-21 21:43:33 +03:30
scripts feat(communication): add SMS MVP frontend with governance artifacts. 2026-07-27 11:11:25 +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(communication): add SMS MVP frontend with governance artifacts. 2026-07-27 11:11:25 +03:30
.dockerignore Deploy TorbatYar for torbatyar.ir with nginx multi-tenant routing. 2026-07-21 21:43:33 +03:30
.eslintrc.json Migrate Beauty, Healthcare, and Accounting frontend to modular src/modules architecture. 2026-07-26 22:28:27 +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(communication): add SMS MVP frontend with governance artifacts. 2026-07-27 11:11:25 +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/