backend-modular-starter
v1.0.0
Published
Industry-ready modular Node.js backend scaffolding CLI — by Jai
Downloads
95
Maintainers
Readme
backend-modular-starter
Industry-ready modular Node.js backend scaffolding CLI — by Jai
Scaffold a production-ready Express backend with auth, users, Swagger, rate limiting, optional databases (MongoDB/PostgreSQL/MySQL), Redis, Socket.IO, and Docker — in seconds.
Installation
npm install -g backend-modular-starterOr run with npx:
npx backend-modular-starterUsage
backend-modular-starterYou'll be prompted to choose:
- Project name – Folder name for your new project
- Database – MongoDB, PostgreSQL, MySQL, or None
- Redis – Include Redis for caching/queues
- Socket.IO – Include real-time events
- Docker – Add Dockerfile + docker-compose
- npm install – Run install automatically
What You Get
- Express with security (Helmet, CORS, rate limiting)
- Auth – JWT register/login/me with brute-force protection
- User module – CRUD, change password, soft delete, role-based access
- Swagger – Auto-generated API docs at
/api-docs - Validation – Joi-ready middleware
- Logging – Winston with file transports
- Graceful shutdown – SIGTERM/SIGINT handling
- Health check –
/healthendpoint that pings DB + Redis
Requirements
- Node.js >= 16
- Git (optional; used for initial commit)
License
MIT © Jai
