A Turborepo monorepo with a NestJS API and Prisma ORM.
This Turborepo includes the following packages and apps:
This Turborepo has some additional tools already setup:
- TypeScript for static type checking
- ESLint for code linting
- Prettier for code formatting
- Node.js >= 18
- pnpm >= 10
pnpm install- Create a
.envfile inapps/api/based on.env.example:
cp apps/api/.env.example apps/api/.env-
Update the
DATABASE_URLinapps/api/.envwith your database connection string. -
Generate Prisma Client:
cd apps/api
pnpm prisma:generate- Run database migrations:
cd apps/api
pnpm prisma:migrateTo develop all apps and packages, run:
pnpm devTo build all apps and packages, run:
pnpm buildTo run tests, run:
pnpm testTo lint all apps and packages, run:
pnpm lintfeedback/
├── apps/
│ └── api/ # NestJS API application
│ ├── src/ # Source files
│ ├── prisma/ # Prisma schema and migrations
│ └── test/ # E2E tests
├── packages/ # Shared packages
├── turbo.json # Turborepo configuration
├── pnpm-workspace.yaml # pnpm workspace configuration
└── package.json # Root package.json