Turborepo + Next.js 16 + Express.js Boilerplate
High Performance Full-Stack Monorepo Starter
Pre-configured, battle-tested Turborepo with Next.js 16 App Router on the frontend, Express.js + Prisma ORM on the backend, automated OpenAPI 3.0 docs, and shared TypeScript workspaces.
Quick Start Guide
Clone & Setup Repository
Get the full-stack Turborepo up and running locally on your machine in five simple steps.
bash — quick clone
$
git clone https://github.com/shariarSultanFahim/fullstack-turborepo-starter-kit.gitSTEP 01
Git
Clone the Repository
Clone the fullstack monorepo starter and navigate into the root directory.
git clone https://github.com/shariarSultanFahim/fullstack-turborepo-starter-kit.git
cd fullstack-turborepo-starter-kitSTEP 02
npm
Install Dependencies
Installs and links all monorepo apps and shared `@repo/*` workspace packages.
npm installSTEP 03
Env
Configure Environment Variables
Set up frontend and backend environment files with local development defaults.
cp apps/api/.env.example apps/api/.env
cp apps/web/.env.example apps/web/.env.localSTEP 04
Prisma
Database & Prisma Setup
Generates the type-safe Prisma client for PostgreSQL / MongoDB database access.
npm run --prefix apps/api prisma:generateSTEP 05
Turbo
Start Development Servers
Launches Next.js (:3000) and Express.js (:5000) concurrently with live-reloading.
npm run devSOURCE
GitHub
Repository & Docs
Explore the open-source repository, star the project, or contribute on GitHub.
Monorepo Architecture
Clean separation of concerns with independent deployable apps and reusable shared packages.
apps/web
Frontend Application
Next.js 16 (App Router), React 19, Tailwind CSS 4, Shadcn/UI primitives, TanStack React Query v5, and React Hook Form.
Dev Porthttp://localhost:3000
Package Name@repo/web
apps/api
Backend API Service
Express.js powered by tsx watch, Prisma ORM (PostgreSQL/MongoDB), Socket.IO server, Winston logging, JWT authentication, and automated OpenAPI 3.0 docs.
packages/*
Shared Workspace Packages
Reusable internal packages across apps: @repo/types (API contracts), @repo/validators (Zod schemas), and @repo/tsconfig.
Packagestsconfig, types, validators, ui
Scope@repo/*
Turborepo Workflows
Granular npm workspace scripts for running both apps or targeting individual services.
npm run dev
Starts both Next.js & Express servers concurrently.
npm run dev:web
Starts only the Next.js frontend dev server.
npm run dev:api
Starts only the Express backend via tsx watch.
npm run build
Builds all packages and apps with Turbo caching.
Modern Tech Stack
Standardized tools and libraries powering this template.
Full-Stack Features Out of the Box
Everything configured, tested, and integrated to build scalable full-stack applications.
Frontend
Next.js 16 App Router
React 19, Server & Client Components, Turbopack, and optimized page rendering.
Backend
Express.js & tsx Backend
Ultra-fast live-reloading with tsx, Socket.IO, Winston logger, and Passport OAuth ready.
Backend
Prisma ORM & PostgreSQL
Type-safe database queries, automated migrations, seeders, and multi-database support.
Monorepo
Turborepo Task Pipelines
Instant build caching, parallel execution, and monorepo-wide typechecking and linting.
Shared
Shared Packages (@repo/*)
Cross-workspace TypeScript configs, shared API types, and shared Zod validation schemas.
Frontend
Tailwind CSS 4 & Shadcn UI
Accessible Radix UI primitives, dark/light themes via next-themes, and rich sonner toasts.
Backend
OpenAPI 3.0 & Swagger UI
Auto-generated REST API docs from Zod schemas at /api/docs and raw JSON spec at /api/docs.json.
Shared
Agent-Driven Development
Pre-configured AI agent instructions for Antigravity, Claude Code, Cursor, and GitHub Copilot.