@michealadekunle/backend-forge
v1.2.5
Published
A CLI tool for generating backend systems
Maintainers
Readme
Backend Forge
Production-grade backend scaffolding and architecture automation CLI for modern Node.js systems.
Features
- Interactive backend project generation
- MongoDB support
- Redis support
- BullMQ support
- Socket.IO support
- JWT authentication scaffolding
- Docker support
- Modular backend resource generation
- Optional CRUD module generation
- Automatic route registration
- Dynamic environment generation
- Smart feature dependency resolution
- Backend Forge project validation
- Architecture-aware backend wiring
- Optional architecture presets
Installation
Install globally:
npm install -g @michealadekunle/backend-forgeOr use directly with npx:
npx @michealadekunle/backend-forge createCommands
Create Project
backend-forge createGenerate Module
backend-forge generate module usersGenerate CRUD Module
backend-forge generate module products --crudPresets
Backend Forge supports optional architecture presets.
Realtime System
backend-forge create --preset realtimeIncludes:
- MongoDB
- Redis
- Socket.IO
- JWT Authentication
- Docker
Fintech API
backend-forge create --preset fintechIncludes:
- MongoDB
- Redis
- BullMQ
- JWT Authentication
- Docker
Minimal API
backend-forge create --preset minimalIncludes:
- Base Express + TypeScript architecture only
Quick Example
Create Project
backend-forge createGenerate Module
backend-forge generate module usersGenerated automatically:
src/modules/users/
├── users.controller.ts
├── users.service.ts
├── users.routes.ts
├── users.types.ts
└── users.validator.tsRoutes are automatically registered in:
src/routes/index.tsCRUD Example
backend-forge generate module products --crudGenerated endpoints:
GET /products
GET /products/:id
POST /products
PATCH /products/:id
DELETE /products/:idGenerated Features
Backend Forge can generate:
- MongoDB architecture
- Redis configuration
- BullMQ queues/workers
- Socket.IO setup
- JWT middleware
- Docker setup
- Modular backend resources
- CRUD-ready controllers and routes
Example Workflow
backend-forge create --preset fintech
cd my-project
npm install
backend-forge generate module payments --crud
npm run devRoadmap
- Swagger/OpenAPI generation
- Prisma/PostgreSQL support
- Authentication presets
- Microservice architecture templates
- Plugin ecosystem
- Testing generators
- CI/CD scaffolding
License
MIT
