create-backend-starter
v1.0.3
Published
A CLI to scaffold a minimal Node.js + MongoDB backend starter
Maintainers
Readme
create-backend-starter
A minimal Node.js + MongoDB backend starter template with JWT authentication, role-ready structure, and modular best practices. Easily scaffold a production-ready Express app using this CLI.
🚀 Quick Start
npx create-backend-starter my-backend-app
cd my-backend-app
npm install
npm run dev🧰 Features
✅ Node.js + Express
✅ MongoDB with Mongoose
✅ JWT-based Authentication (Access + Refresh tokens)
✅ Protected Routes
✅ Refresh + Logout Flow
✅ Centralized Error Handling
✅ .env support
📁 Output Project Structure
my-backend-app/
├── src/
│ ├── app.js
│ ├── config/
│ ├── controllers/
│ ├── models/
│ ├── routes/
│ └── utils/
├── .env.example
├── package.json
└── README.md📦 How It Works
This CLI copies a pre-built backend boilerplate from template/ into a target folder.
🛡 Example Auth Routes
POST /api/register – Create a new user
POST /api/login – Login and get tokens
POST /api/refresh-token – Get a new access token
GET /health – Server health check
🧰 Tech Stack
- Node.js + Express.js
- MongoDB + Mongoose
- JWT for authentication
- Joi for validation
- Winston + Morgan for logging
- Jest + Supertest for testing
📂 Repository
This project is open source and available on GitHub:
👉 https://github.com/sourav-maji/minimal-backend
Feel free to ⭐ star the repo, report issues, or submit pull requests.
🙋♂️ Maintainer & 👨💻 Author
Sourav Maji — AI Automation Engineer & Backend Developer
