I got tired of configuring tsconfig and Docker every time I start a Node project, so I built my own CLI

Published: (March 11, 2026 at 11:29 AM EDT)
1 min read
Source: Dev.to

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
0 views
Back to Blog

Related posts

Read more »