This monorepo provides a modern fullstack boilerplate using Next.js for the frontend and NestJS for the backend — organized and managed with Turborepo.
It's designed for scalability, type safety, and developer experience — ideal as a base for full-featured applications.tack Turborepo
This monorepo provides a modern fullstack boilerplate using Next.js for the frontend and NestJS for the backend — organized and managed with Turborepo.
It's designed for scalability, type safety, and developer experience — ideal as a base for full-featured applications.Fullstack Auth Turborepo
This monorepo provides a modern fullstack authentication boilerplate using Next.js for the frontend and NestJS for the backend — organized and managed with Turborepo.
It’s designed for scalability, type safety, and developer experience — ideal as a base for full-featured auth-driven applications.
Use this repo as a GitHub template (recommended), or clone it directly:
git clone https://github.com/robertlinde/next-nest-turbo-boilerplate.gitcd next-nest-turbo-boilerplate
Build the shared package so it can be installed as dependency for the apps:
cd packages/sharednpm installnpm run build
Install root-level dependencies (workspace-based):
npm install
This will install dependencies for all apps using Turborepo's workspace management.
Each app has its own .env.example. Copy and configure them:
cp apps/nextjs-frontend/.env.example apps/nextjs-frontend/.envcp apps/nestjs-backend/.env.example apps/nestjs-backend/.env
Then fill in the required environment variables based on your setup (e.g., database credentials, email service configs).
Start the database container and apply migrations:
cd apps/nestjs-backenddocker-compose up -dnpm run migration:createnpm run migration:up
At the root of your project, run:
npm run start:dev
Your app should now be running with both frontend and backend services in development mode.
- Next.js (App Router)
- TypeScript
- Tailwind CSS + PrimeReact
- React Hook Form + Zod
- React Query
- next-intl (i18n)
➡️ More in apps/nextjs-frontend/README.md
- NestJS
- TypeScript
- MikroORM + PostgreSQL
- Templated email service
- class-validator
➡️ More in apps/nestjs-backend/README.md
- TypeScript
- class-validator
- Shared types & DTOs between frontend and backend
- Type-safe API contracts
➡️ More in packages/shared/README.md
This repo is intended to be cloned, extended, and customized. Feel free to open issues or submit PRs if you're improving the base or adapting it.
MIT — free to use, modify, and distribute.
➡️ More in LICENSE