create-backend-templates
v1.0.1
Published
This is node backend creation with multiples templates and features like jwt & etc.
Downloads
80
Maintainers
Readme
Backend Project Generator CLI
⚡ A fast, interactive CLI to scaffold modern backend projects with Express or NestJS, MongoDB/MySQL/Postgres, Prisma support, and optional features like Auth, Swagger, Docker, and ESLint.
Features
- Scaffold backend projects with Express.js or NestJS
- Choose TypeScript or JavaScript
- Database support:
- MongoDB (Mongoose)
- MySQL (Prisma)
- PostgreSQL (Prisma)
- Optional extra features:
- JWT Authentication
- Swagger API Docs
- Docker support
- ESLint + Prettier setup
- Git initialized with first commit
- Interactive CLI with colorized UI and progress bars
- Offline ready: Bundled templates for instant scaffolding without git cloning
- Works on Windows, macOS, and Linux
Installation
npm install -g create-backendor via yarn
yarn global add create-backendUsage
List Available Templates
create-backend --listOutput:
• Express + TypeScript (Mongo) → express-ts-mongo
• NestJS + TypeScript (Mongo) → nest-ts-mongo
• Express + JavaScript (Mongo) → express-js-mongo
• Express + TS + Prisma (MySQL) → express-ts-prisma-mysql
• Express + TS + Prisma (Postgres) → express-ts-prisma-postgres
• Nest + TS + Prisma (MySQL) → nest-ts-prisma-mysql
• Nest + TS + Prisma (Postgres) → nest-ts-prisma-postgresGenerate a New Project
Run the CLI:
create-backendFollow the prompts to:
- Select Framework (Express / NestJS)
- Choose Language (TypeScript / JavaScript)
- Pick Database (MongoDB / MySQL / PostgreSQL)
- Enable optional features (Auth, Swagger, Docker, ESLint)
- Specify Project Name
The CLI will:
- Clone the selected template
- Generate
.envfor your database - Install dependencies with progress bar
- Initialize git and create initial commit
- Optional features scaffolding
Example
? Choose Framework: Express
? Language: JavaScript
? Database: MongoDB
? Add Features: Auth, Swagger, Docker, ESLint
? Project Name: my-backendAfter completion:
cd my-backend
npm run dev
# or
npm start
code .Contributing
Contributions are welcome! Please follow these steps:
- Fork the repository
- Create a feature branch:
git checkout -b feature/my-feature - Commit your changes:
git commit -m 'Add my feature' - Push to the branch:
git push origin feature/my-feature - Open a Pull Request
License
MIT © 2025 Dhurbaraj N Joshi
