Files
SYSTEM/docs/architecture/unified-project-structure.md
2025-09-01 01:52:06 +03:00

34 lines
1.2 KiB
Markdown

# 6. Unified Project Structure
This is the final monorepo structure that integrates the frontend (`app/`), backend (`server/`), and database (`prisma/`) components.
```plaintext
system/
├── app/ # Nuxt frontend application
│ ├── assets/
│ │ └── scss/
│ ├── components/
│ ├── composables/
│ ├── layouts/
│ ├── pages/
│ └── ...
├── prisma/ # Prisma ORM configuration
│ ├── migrations/
│ │ └── .../migration.sql
│ └── schema.prisma # The single source of truth for the database
├── server/ # Nuxt server-side logic (API)
│ ├── api/
│ │ └── ...
│ ├── middleware/
│ └── utils/
├── types/ # Shared TypeScript types
│ ├── citizen.ts
│ ├── ledger.ts
│ └── index.ts
├── docker-compose.yml # Defines and runs the multi-container stack
├── Dockerfile # For building the Nuxt application image
├── nuxt.config.ts # Nuxt configuration
├── package.json
└── tsconfig.json
```