mern-book-boilerplate
v1.0.2
Published
CLI to scaffold a MERN (MongoDB, Express, React, Node) boilerplate app with a booking-style client and server.
Downloads
386
Maintainers
Readme
mern-book-boilerplate
A CLI that scaffolds a full MERN stack app (React client + Express/MongoDB server), based on mern-book-fe and mern-book-be.
Usage
npx mern-book-boilerplate <project-name>Example:
npx mern-book-boilerplate my-app
cd my-app
npm run install:all
# .env files are already included in frontend/ and backend/
# edit backend/.env and set MONGO_URI to your MongoDB connection string
npm install
npm run devThis creates:
my-app/
├── frontend/ # React app (axios, ready-to-use API client)
├── backend/ # Express + Mongoose API (routes/controllers/services/models)
├── package.json # root scripts to run both apps together
└── README.mdRoot scripts
| Script | What it does |
| --- | --- |
| npm run install:all | installs dependencies in both frontend and backend |
| npm run frontend | starts the React dev server |
| npm run backend | starts the Express server with nodemon |
| npm run dev | runs frontend + backend together (needs npm install first, for concurrently) |
Stack
- Client: React 19, Axios, react-scripts
- Server: Express 5, Mongoose, CORS, dotenv, nodemon (dev)
Publishing this package
If you want to publish your own copy to npm:
npm login
npm publish --access public(Bump the version in package.json for subsequent releases.)
License
MIT
