1.2 KiB
1.2 KiB
6. Unified Project Structure
This is the final monorepo structure that integrates the frontend (app/), backend (server/), and database (prisma/) components.
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