A CLI tool to scaffold a full-stack project with NestJS (backend) and Next.js (frontend) in seconds.
npx init-fullstack-appOr install globally:
npm install -g init-fullstack-app
init-fullstack-appThe CLI walks you through a set of prompts and generates a ready-to-use project with:
- Backend: NestJS with TypeScript
- Frontend: Next.js 16 with React 19 and TypeScript
- Structure: Monorepo or separate repositories
- Package manager: npm, yarn, pnpm, or bun
| Option | What it adds |
|---|---|
| Auth | JWT authentication with Passport.js (NestJS) |
| Docker | docker-compose.yml + Dockerfile for backend and frontend |
| Lint | ESLint (flat config, v9) + Prettier for both repos |
init-fullstack-app: A CLI tool to initialize a new fullstack project
✔ What's the name of your project? › my-app
✔ Choose the project structure › Monorepo
✔ Choose your package manager › pnpm
✔ Do you want to include authentication with JWT? › yes
✔ Do you want to include Docker compose configuration? › yes
✔ Do you want to include ESLint + Prettier configuration? › yes
◇ Project initialized successfully!
my-app/
├── backend/
│ ├── src/
│ │ ├── app.controller.ts
│ │ ├── app.module.ts
│ │ └── main.ts
│ ├── Dockerfile
│ ├── package.json
│ └── tsconfig.json
├── frontend/
│ ├── src/app/
│ │ ├── layout.tsx
│ │ └── page.tsx
│ ├── Dockerfile
│ ├── next.config.ts
│ ├── package.json
│ └── tsconfig.json
└── docker-compose.yml
my-app-backend/
my-app-frontend/
my-app-devops/ # if Docker was selected
└── docker-compose.yml
bun install
bun run bin/index.ts