24 lines
775 B
Markdown
24 lines
775 B
Markdown
# Architecture
|
|
|
|
## Monorepo Structure
|
|
|
|
- `apps/web`: public app
|
|
- `apps/admin`: admin app
|
|
- `packages/db`: prisma + data access
|
|
- `packages/content`: shared schemas and domain contracts
|
|
- `packages/crud`: shared CRUD service patterns (validation, errors, audit hooks)
|
|
- `packages/ui`: shared UI layer
|
|
- `packages/i18n`: shared locale definitions and i18n helpers
|
|
- `packages/config`: shared TS config
|
|
|
|
## Design Principles
|
|
|
|
- Shared contracts before feature implementation
|
|
- RBAC and CRUD base as prerequisites for MVP1 feature work
|
|
- Keep admin and public responsibilities clearly separated
|
|
- Public routing is path-stable; locale is resolved via `next-intl` middleware + cookie
|
|
|
|
## Pending Documentation
|
|
|
|
See documentation tasks in `TODO.md` under the Documentation track.
|