mern-cli-start
v1.0.3
Published
CLI to generate production-ready MERN apps
Downloads
34
Maintainers
Readme
🚀 Mern-Cli-Start
CLI to generate production-ready MERN stack starter app.
Global Install
npm install -g mern-cli-startStart Command
npx mern-cli-start <project_name>📦 Tech Stack
Frontend
- React (Vite)
- Modern folder structure
- Component-based architecture
Backend
- Node.js
- Express.js
- MVC Architecture
- REST API ready
📁 Project Structure
root/
│
├── backend/ # Node.js + Express API
│ ├── src/
│ │ ├── controllers/
│ │ ├── models/
│ │ ├── routes/
│ │ ├── middleware/
│ │ └── app.js
│ └── server.js
│
├── frontend/ # React + Vite App
│ ├── src/
│ │ ├── components/
│ │ ├── pages/
│ │ └── App.jsx
│ └── index.html
│
└── README.md
🌐 Default Ports
- Frontend → http://localhost:5173
- Backend → http://localhost:8000
📌 Features
- Clean folder structure
- Scalable architecture
- Easy to customize
- Fast development setup
- Auto dependency install
🛠️ Customization Guide
Add new API route : backend/src/routes/
Add new controller : backend/src/controllers/
Add frontend page : frontend/src/pages/
Add reusable components : frontend/src/components/
🔐 Environment Variables
Create a .env file in backend/:
PORT=8000
MONGODB_URL=your_mongodb_connection👨💻 Created By
Adarsh Shaw
- 💼 Developer | MERN Stack Enthusiast
- 🚀 Passionate about building scalable and real-world applications
- 🔗 Connect with me
🤝 Contributing
Contributions are welcome! 🎉 Open issues, suggest features, or submit pull requests to make even better.
⭐ Support
If you like this project, give it a ⭐ on GitHub!
