create-prod-backend
v1.3.6
Published
A cli tool to generate a production-ready backend boilerplate with Express.js, MongoDB, and essential features.
Maintainers
Readme
create-prod-backend
Build a production-ready Express backend in seconds — no boilerplate, no setup headaches.
Installation
Use directly with npx (recommended):
npx create-prod-backendOr install globally:
npm install -g create-prod-backend
create-prod-backendFeatures
- Instant Express.js backend setup
- Clean and scalable folder structure
- Optional MongoDB integration
- Environment variable support (.env)
- Select dependencies interactively
- Production-ready scripts
- Developer-friendly CLI
What It Generates
project-name/
│
├── src/
│ ├── controllers/
│ ├── routes/
│ ├── models/
│ ├── middlewares/
│ ├── utils/
│ ├── db/
│ │
│ ├── app.js
│ ├── index.js
│ └── constants.js
│
├── public/
│
├── .env
├── .gitignore
├── package.json
└── README.mdUsage
Run the CLI:
npx create-prod-backendYou’ll be prompted for:
- Project name
- MongoDB setup (Yes/No)
- .env file (Yes/No)
- Dependencies to install
- Auto install dependencies
Supported Dependencies
- express
- cors
- dotenv
- cookie-parser
- nodemon (devDependency)
- bcryptjs (Optional)
- zod (Optional)
- argon2 (Optional)
- jsonwebtoken (Optional)
- cloudinary (Optional)
- multer (Optional)
- mongoose (Optional)
Scripts
After setup:
npm run dev # Development (nodemon)
npm start # ProductionExample
npx create-prod-backend
✔ Enter project name: my-app
✔ Use MongoDB: Yes
✔ Use .env: Yes
✔ Install dependencies: YesYour backend is ready!
Tech Stack
- Node.js
- Express.js
- MongoDB (optional)
- Inquirer (CLI prompts)
- Chalk (CLI styling)
Upcoming Features
- Service layer support
- Auth template (JWT)
- Docker setup
- API documentation (Swagger)
- TypeScript support
Contributing
Contributions are welcome!
git clone https://github.com/codeurge123/create-prod-backend
cd create-prod-backend
npm installLicense
ISC License
Author
Made by codeurge316 - @yashbansal
Support
If you like this project:
- Star the repo
- Share with others
- Suggest new features
Final Thought
Stop wasting time setting up backend boilerplate. Start building real projects.
- create-prod-backend does the setup — you build the product.
