Every time I start a new Node.js backend project I end up configuring the same things again and again:
TypeScript, folder structure, database setup, Docker, error handling, scripts...
So I decided to build a small CLI to automate that process.
It's called create-backend-api and it scaffolds a production-ready Node.js backend using DDD and Clean Architecture.
I already did 3 templates at this momment, with the stacks that i use the most:
Express or Fastify
TypeORM
PostgreSQL
The CLI generates a clean project structure with base entities, repositories, controllers and centralized error handling.
Right now it only has 3 templates but I'm planning to add more soon.
You can test it with:
npx create-backend-api create
GitHub: https://github.com/HSThzz
Npm: https://www.npmjs.com/package/create-backend-api
I'd really appreciate feedback from other Node developers.
Top comments (0)