MERN stack boilerplate generator
npm install mern-kamoNote: β οΈ Running npm i mern-kamo alone will not work as a CLI.
You need to install it globally to use the command directly:
```bash
π» Installation
-> Global (Recommended for CLI)
npm i -g mern-kamo
mern-kamo
-> Local (Optional)
npm i mern-kamo
npx mern-kamo
MERN-Kamo is a powerful CLI tool that instantly generates a MERN stack boilerplate with both backend and frontend ready-to-use.
π’ Backend: Express + MongoDB + JWT + Cors
βοΈ Frontend: React + Vite
π Ready-to-use folder structure (backend & frontend)
π Instantly setup a full MERN project
π¦ Features
β‘ Scaffold a full MERN project with a single command
π Backend setup with Express, MongoDB, CORS, JWT, Nodemon
βοΈ Frontend setup with React Using Vite
π Nodemon support for hot-reload in backend
π Well-organized folder structure
βοΈ How It Works
Backend Folder Structure is generated:
backend/
βββ index.js # Express server entry
βββ .env # Environment variables
βββ models/ # Database models
βββ routes/ # Express routes
βββ controllers/ # Route controllers
Backend dependencies: express, mongoose, bcryptjs, jsonwebtoken, cors, dotenv, nodemon (dev)
Backend package.json scripts:
"scripts": {
"start": "node index.js",
"dev": "nodemon index.js"
}
Frontend Folder Structure is generated (Vite + React):
frontend/
βββ index.html
βββ package.json
βββ src/
β βββ main.jsx
β βββ App.jsx
βββ vite.config.js
Frontend dependencies: react, react-dom, axios, react-router-dom, react-toastify
π Backend
Start backend server:
cd backend
npm run dev
Server runs on: http://localhost:5000
π»Frontend
Start frontend server:
cd frontend
npm run dev
Frontend runs on Vite default: http://localhost:5173
π Full Folder Structure
mern-kamo-project/
βββ backend/
β βββ index.js
β βββ .env
β βββ models/
β βββ routes/
β βββ controllers/
βββ frontend/
βββ index.html
βββ package.json
βββ src/
β βββ main.jsx
β βββ App.jsx
βββ vite.config.js
π License
Apache-2.0 License