npm.io
3.1.2 • Published 3d agoCLI

create-latest-mern-app

Licence
MIT
Version
3.1.2
Deps
2
Size
595 kB
Vulns
0
Weekly
0

create-latest-mern-app

npm version license node support total downloads

Create a modern MERN app in under a minute.

A CLI to scaffold modern MERN projects quickly, with JavaScript or TypeScript templates for both frontend and backend.

create-latest-mern-app CLI demo

Why This Over Others?

  • Focused: purpose-built for MERN, no extra framework noise.
  • Flexible: choose frontend only, backend only, or full stack.
  • JavaScript and TypeScript support for both client and server.
  • Clean output: generates only what you select (/client, /server).
  • Fast setup: ready-to-run templates with auth, product routes, and UI pages.

Features

  • Interactive setup flow for frontend and backend.
  • React frontend templates (react, react-ts).
  • Express backend templates (server, server-ts).
  • Creates clean /client and /server folders based on your selections.
  • Docker-ready templates with generated docker-compose.yml.

Quick Start

npx create-latest-mern-app <your-app-name>

Prompt Flow

When you run the CLI, it asks:

  1. Project name
  2. Do you want frontend?
  3. Do you want backend?
  4. Frontend language (if frontend selected)
  5. Backend language (if backend selected)

If both frontend and backend are not selected, the CLI exits safely with a friendly message and creates nothing.

Run the Generated App

cd <your-app-name>

If frontend was selected:

cd client
npm install
npm run dev

If backend was selected:

cd server
npm install
cp .env.example .env
npm run dev

Run with Docker

Generated apps include Dockerfiles and a root docker-compose.yml.

cd <your-app-name>
docker compose up --build

Contributing

Please read CONTRIBUTING.md for contribution guidelines, setup steps, and PR expectations.

Author

Made with by Pulkit Garg

Keywords