Frontend and backend
Frontend (frontend/)
- App Router under
src/app/ - Marketing + public proof + dashboard
- In-app docs:
/docs(markdown underfrontend/content/docs/) - MVP pitch:
/mvp - Auth store, React Query services, Chakra theme
Env: NEXT_PUBLIC_API_URL (default http://localhost:4000/api/v1).
Backend (backend/)
- Express entry →
/api/v1 - Prisma schema + migrations
- Career loop, courses, assessments, payments, live sessions, RBAC
Env: DATABASE_URL, JWT/session secrets, FRONTEND_URL / CORS_ORIGIN, mail, storage.
Auth roles → homes
| Role | Default home |
|---|---|
| ADMIN / SUPER_ADMIN | /admin |
| EMPLOYER | /dashboard/talent |
| Others | /dashboard |
See frontend/src/lib/permissions.ts → getDefaultHomePath.