A CLI tool to instantly scaffold a scalable Node.js backend using either Mongoose (MongoDB) or Sequelize (MySQL/PostgreSQL) — with modular folder structure, environment setup, and built-in best practices.
- 🔧 Zero-config setup for backend projects
- 🏗️ Scalable folder structure (
controllers/
,services/
,routes/
, etc.) - 🧪 Pre-configured Mongoose and Sequelize templates
- 🌱 Sequelize auto-initialization with
npx sequelize init
- ✅ Includes
.env
config, logging, and modular utils
You don’t need to install it globally — use npx
:
npx create-node-backend-app
Or install globally:
npm install -g create-node-backend-app
create-node-backend-app
You’ll be prompted to:
- Select a boilerplate (
mongoose
orsequelize
) - Name your project directory
That’s it! Your project will be scaffolded automatically.
your-app/
├── src/
│ ├── config/
│ ├── controllers/
│ ├── middlewares/
│ ├── models/
│ ├── repositories/
│ ├── routes/
│ ├── services/
│ └── index.js
├── .env
├── package.json
└── README.md
- Connects with MongoDB via Mongoose
-
.env
should include:
PORT=3000
MONGODB_URI=mongodb://localhost:27017/your-db
# or MongoDB Atlas
# MONGODB_URI=mongodb+srv://<username>:<password>@cluster.mongodb.net/your-db
- Initializes Sequelize automatically inside
src/
- Modify DB credentials in
src/config/config.json
cd your-app
cd src
npx sequelize init
npm run dev # start with nodemon
npm start # normal start
- Use MongoDB Atlas or hosted MySQL for production-ready databases.
- Stick to the MVC-like structure for scalable codebases.
- You can extend the CLI to support more databases and features.
Got improvements or want to add a new template (like PostgreSQL, Redis, or Firebase)?
Open a PR or raise an issue on GitHub
MIT © Your Name