@aryan_barbate/create-express-starter
v1.0.1
Published
CLI tool to quickly bootstrap an Express.js server template with MongoDB Mongoose setup
Maintainers
Readme
@aryan_barbate/create-express-starter
CLI tool to quickly bootstrap a modern Node.js + Express + MongoDB (Mongoose) boilerplate with ES Modules.
Quick Start
You can generate a new Express project inside any empty directory:
mkdir MyAPI
cd MyAPI
npm create @aryan_barbate/express-starterOr using npx:
npx @aryan_barbate/create-express-starterThe CLI will automatically:
- ✅ Generate folder structure (
Database/,controllers/,models/,routes/) - ✅ Generate
package.jsontailored to your folder name - ✅ Generate
.envand.gitignore - ✅ Generate boilerplate code for MongoDB Atlas connection, sample controller, model, and routes
- ✅ Automatically install dependencies (
express,mongoose,dotenv,nodemon)
After generation completes, start your server:
npm startProject Template Structure Generated
.
├── Database/
│ └── db.js
├── controllers/
│ └── controller.js
├── models/
│ └── model.js
├── routes/
│ └── route.js
├── index.js
├── package.json
├── .env
├── .gitignore
└── README.md