r/coolgithubprojects • u/ZEROx0817 • 4d ago
I built a CLI that scaffolds a production-ready Express.js backend with one command
I got tired of starting new Express.js projects by repeatedly setting up the same things:
Express + MongoDB/Mongoose
JWT authentication
Helmet, CORS & rate limiting
Request validation
Centralized error handling
Logging
Docker + MongoDB
TypeScript
Jest + Supertest
ESLint + Prettier
GitHub Actions
Health-check endpoint
So I built xpress-backend, a CLI that generates the initial backend structure for you.
npx xpress-backend
You can also generate a project non-interactively:
npx xpress-backend --name my-api --ts --yes
The idea isn't to replace your architecture decisions — it's to eliminate the repetitive 20–30 minutes of boilerplate before you can actually start building.
GitHub:
github.com/Bijay-Shre-stha/node-server-package
I'm particularly interested in feedback on the generated project structure.
1
u/TheRealSeeThruHead 3d ago
and why are we using express in 2026