create-my-server
v1.2.0
Published
A lightweight CLI tool to quickly scaffold a fully configured **Node.js + Express + TypeScript** backend with **ESLint, Prettier, Husky, lint-staged, and folder structure** — all with one command.
Readme
create-backend
A lightweight CLI tool to quickly scaffold a fully configured Node.js + Express + TypeScript backend with ESLint, Prettier, Husky, lint-staged, and folder structure — all with one command.
Features
✔ Node.js + Express starter ✔ TypeScript preconfigured ✔ ESLint (with TypeScript support) ✔ Prettier (auto-formatting) ✔ Husky + lint-staged (pre-commit formatting & linting) ✔ Nodemon + ts-node for dev ✔ Clean project structure ✔ Ready-to-code within seconds
Installation
Using npm create
Easiest way:
npm create backend my-appOR:
Using npx
npx create-backend my-appProject Structure (Generated)
my-app/
├─ src/
│ ├─ index.ts
│ ├─ routes/
│ │ └─ index.ts
│ └─ .eslintrc.json
├─ tsconfig.json
├─ package.json
├─ .prettierrc
├─ .husky/
│ └─ pre-commitScripts
After generation, inside your project:
Start Dev Server
npm run devBuild Project
npm run buildRun Production Build
npm startRun Linter
npm run lintWhat gets auto-installed?
- express
- cors
- typescript
- ts-node
- nodemon
- @types/node
- @types/express
- @types/cors
- eslint + typescript-eslint
- prettier
- husky
- lint-staged
Why use create-backend?
- Saves time setting up the same backend again and again.
- Enforces clean code using eslint + prettier.
- Ensures consistent formatting through husky pre-commits.
- Gives you a production-ready project setup instantly.
