- Full-stack boilerplate for modern TypeScript applications with NestJS, Prisma, PostgreSQL, GraphQL, and Next.js + React. Ready-to-use setup with feature-based folder structure and type-safe GraphQL integration.
- Have a basic Users feature to create and list users that can be reached @ /users endpoint
- Backend: NestJS + GraphQL + Prisma + PostgreSQL
- Frontend: Next.js (App Router) + React + Apollo Client
- Database: PostgreSQL, Redis (in future)
- GraphQL Codegen: Type-safe queries and mutations
- Languages: TypeScript
- Node.js ≥ 22
- npm ≥ 9
- Docker (optional, for Postgres)
- PostgreSQL ≥ 15 (if not using Docker)
-
npm install
-
Env Vars:
- Backend: apps/api/.env
- Frontend: apps/frontend/.env.local
-
Start Postgres DB: docker compose -f docker/postgres.yml up -d
-
Run database migrations:
- cd apps/api
npx prisma migrate dev --name initnpx prisma generate
-
Start development server:
npm run dev- Optional : Prisma Studio:
npm run prisma:studio - Frontend: http://localhost:3000
- Backend (GraphQL Playground): http://localhost:3001/graphql
- Admin UI (Prisma Studio): http://localhost:5555