I got tired of configuring tsconfig and Docker every time I start a Node project, so I built my own CLI
Source: Dev.to
Problem
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, etc.
Solution
I built a small CLI called create‑backend‑api that automates the scaffolding of a production‑ready Node.js backend using DDD and Clean Architecture.
Features
- Generates a clean project structure with base entities, repositories, controllers, and centralized error handling.
- Supports three starter templates (Express, Fastify, TypeORM) with PostgreSQL.
- Ready‑to‑use Docker configuration.
- Extensible – more templates are planned.
Usage
npx create-backend-api create