Skip to content

MatiScavuzzo/init-fullstack-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

init-fullstack-app

A CLI tool to scaffold a full-stack project with NestJS (backend) and Next.js (frontend) in seconds.

Usage

npx init-fullstack-app

Or install globally:

npm install -g init-fullstack-app
init-fullstack-app

What it generates

The 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

Optional extras

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

Example

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!

Generated structure

Monorepo

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

Separate repositories

my-app-backend/
my-app-frontend/
my-app-devops/           # if Docker was selected
  └── docker-compose.yml

Development

bun install
bun run bin/index.ts

About

A CLI tuool to initialize a new fullstack project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors