create-latest-mern-app
v3.1.0
Published
Initialize Node.js, React.js, and Next.js projects with ease.
Maintainers
Readme
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 devIf backend was selected:
cd server
npm install
cp .env.example .env
npm run devRun with Docker
Generated apps include Dockerfiles and a root docker-compose.yml.
cd <your-app-name>
docker compose up --buildContributing
Please read CONTRIBUTING.md for contribution guidelines, setup steps, and PR expectations.
Author
Made with ❤️ by Pulkit Garg
