Generate a fully scaffolded, production-ready Node.js backend. Choose your language, architecture, and features. Ship immediately.
Downloads (30d)
Loading...
Total Downloads
Loading...
Everything you need to ship faster, built the right way from the start.
Start with production code, not boilerplate. Focus on business logic.
Built by experienced developers. Error handling, logging, security included.
Monolith or microservices. Grow from MVP to production without rebuilding.
Every feature is designed to remove friction and let you focus on what matters.
TypeScript (default) or JavaScript templates
JWT + MongoDB when enabled; off means zero DB wiring
Args support mono/micro; prompts only what is needed
Gateway + health service; Docker or PM2 deployment
Optional Zod schemas to validate and secure input payloads
Re-run CLI; gateway and routes update automatically
Auto-generated interactive Swagger UI (/api-docs) out of the box
Auto-generates GitHub actions, PR templates, and CONTRIBUTING.md
How it Works
The CLI asks only what it needs, generates just what you chose, and keeps docs in sync with your options. No bloat, no unused dependencies.
Run the initializer without installing it globally. Optionally pass architecture overrides.
# Run interactive setup
npx @ifecodes/backend-template@latest my-project
# Or pre-select architecture
npx @ifecodes/backend-template@latest my-project mono
npx @ifecodes/backend-template@latest my-project micro
Project name
From command args or dynamic prompt; skipped when adding a service inside /services.
Language
TypeScript (default) or JavaScript code templates.
Metadata (optional)
Description, author, keywords β auto-configured in package.json & README.
Project Scope
Team or Individual. Team projects generate CI/CD workflows, PR templates, and CONTRIBUTING.md. Individual keeps it minimal.
Architecture
Monolith or Microservice (can be pre-selected via mono/micro args).
Mode (micro only)
Docker (compose + Dockerfiles) or PM2 (process-managed deployments).
Features
CORS, Rate Limiting, Helmet, Morgan (multiselect with zero dependencies if skipped).
Authentication
Toggle JWT + MongoDB; secure password hashing setup follows.
Request validation
Toggle request validation with Zod schemas to validate input payloads dynamically.
Adding a service?
If a /services folder exists, automatically runs in add-service mode to extend the gateway config.
Monolith Layout
Microservices Layout
All features map to optimized, isolated code paths without global pollution.
JavaScript
Pure JS output, no TS compilation layer
TypeScript
Full type safety, types, and compiler configs
Monolith
Standard single Express application
Microservice
API Gateway + distributed services
Auth OFF
No database wiring, clean scaffolding
Auth ON
JWT validation, MongoDB connection setup
bcrypt
Windows-friendly password hashing
argon2
High-performance hashing for Unix/macOS
Docker
Container orchestration via docker-compose
PM2
Multi-process PM2 config setups
Zod ON
Automatic request schemas & validate middlewares
Zod OFF
Traditional manual route handler validation
Everything you need to know to install, configure, and scale your backend workspace.
Quick Anchors
Initialize your codebase directly with npx. No global installation required.
Skip prompts by predefining your architecture in the arguments:
# Predefine as monolith project
npx @ifecodes/backend-template@latest my-project mono
# Predefine as microservice project
npx @ifecodes/backend-template@latest my-project micro
Read the comprehensive documentation containing detailed descriptions of interactive prompts, generated project structure, database wiring guides, and environment setups.
Compare generated workspace structures. Only the configurations you select are generated.
my-workspace/ βββ services/ β βββ gateway/ # Reverse proxy / Router (Port 4000) β βββ health-service/ # Endpoint status checks (Port 4001) βββ shared/ β βββ config/ # Common env variable mappings β βββ utils/ # Shared logger & error middleware βββ package.json # Workspace scripts βββ README.md βββ .env.example
Architecture Notes:
docker-compose.yml and service Dockerfiles.pm2.config.js file instead of containers.auth-service/ (Port 4002) is scaffolded.my-workspace/ βββ services/ β βββ gateway/ β β βββ Dockerfile β βββ health-service/ β βββ Dockerfile βββ docker-compose.yml # Multi-service run config βββ package.json βββ README.md
my-workspace/ βββ services/ β βββ gateway/ β βββ health-service/ βββ pm2.config.js # Core PM2 run configurations βββ package.json βββ README.md
my-monolith-app/ βββ src/ β βββ config/ # Configurations and key validation β βββ middlewares/ # Custom Express filters (CORS, Rate Limiting, etc.) β βββ modules/ β β βββ v1/ β β βββ health/ # API endpoints for health status checking β βββ utils/ # Global logger wrapper β βββ app.ts # Central Express app declarations β βββ routes.ts # Central Routing mapping file β βββ server.ts # Listening port initialization βββ package.json βββ README.md
Architecture Notes:
src/models/ and src/modules/v1/auth/ folder structures.modules/v1/[feature]/schemas/.Answers to common questions regarding CLI options, setups, and architecture choices.
Have questions, issues, or want to contribute? Connect with us below.
Report runtime bugs, scaffold issues, or request new CLI generator options directly on our repository.
Ask coding questions, propose template patterns, share ideas, and engage with the developer community.
For security concerns, sponsorship queries, or direct developer support, contact us via email:
Open source, free, and made for developers by developers.