Licence
MIT
Version
3.1.2
Deps
2
Size
595 kB
Vulns
0
Weekly
0
create-latest-mern-app
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.

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
/clientand/serverfolders 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:
- Project name
- Do you want frontend?
- Do you want backend?
- Frontend language (if frontend selected)
- 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