Generate a fully scaffolded Node.js backend. Choose your language, architecture, and features. Deploy immediately.
NPX CLI
Last 30 days downloads: loading…
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.
TypeScript (default) or JavaScript templates
JWT + MongoDB when enabled; off means no DB wiring
Args support mono/micro; prompts only what is needed
Gateway + health; Docker or PM2
CORS, Helmet, Rate Limit, Morgan
Re-run CLI; gateway/routes update automatically
How the Backend Template CLI Works
The CLI asks only what it needs, generates just what you chose, and keeps docs in sync with your answers—no bloat, no mismatched commands.
npx @ifecodes/backend-template my-project
Optional shortcuts:
npx @ifecodes/backend-template my-project mono
npx @ifecodes/backend-template my-project micro
Project name
From args or prompt; skipped when adding a service inside /services
Language
TypeScript (default) or JavaScript templates
Metadata (optional)
Description, author, keywords → package.json & README
Architecture
Monolith or Microservice (or inferred from args like mono/micro)
Mode (micro only)
Docker (compose + Dockerfiles) or PM2 (no Docker)
Features
CORS, Rate Limit, Helmet, Morgan (multiselect)
Authentication
Toggle JWT + MongoDB; hasher prompt follows (bcrypt/argon2)
Adding a service?
If /services exists, prompts for service name + per-service features + auth + hasher
Monolith
Microservice
Authentication (optional)
No auth → no DB wiring, no JWT logic, cleaner output.
Auth on → JWT auth, MongoDB wiring, auth routes/controllers.
Hasher choice: bcrypt (Windows-friendly) or argon2 (macOS/Linux recommended). Only one is installed.
Features (pick any)
CORS • Helmet • Rate Limiter • Morgan logging
Only selected middleware and dependencies are added.
JavaScript
Pure JS output, no TS configs
TypeScript
Full typings + tooling
Monolith
Single Express app
Microservice
Gateway + services
Auth OFF
No DB, no JWT
Auth ON
JWT + MongoDB
bcrypt
Windows-friendly hashing
argon2
Stronger hashing
Docker
Containerized services
PM2
Process-managed deploy
No features
Minimal API
Any features
Only chosen middleware
Everything you need: install command, options, and usage examples.
Quick anchors
Run it instantly with npx (recommended).
Shortcuts for architecture (the CLI can also infer this from prompts).
npx @ifecodes/backend-template my-project mono
npx @ifecodes/backend-template my-project micro
Read the complete README with all prompts, generated structure, and notes.
Example layouts produced by the CLI when authentication is disabled (no auth).
Notes:
Notes:
Common questions about platform support, requirements, and how the generator behaves.
Yes. The CLI is designed to work on Windows, macOS, and Linux. For password hashing, bcrypt is the most Windows-friendly default.
Use a modern LTS Node.js version. If you run into any install/runtime issues, update Node first (LTS) before anything else.
Only if you enable Authentication. If auth is OFF, the output stays clean: no DB wiring, no JWT logic, no auth service.
Docker mode generates compose + Dockerfiles for containerized services. PM2 mode skips Docker and sets up process-managed deployment. Choose based on your deployment environment.
When the CLI detects an existing microservice workspace (a /services folder), it switches into add-service mode: it prompts for a new service name and optional features/auth, then updates gateway routing automatically.
Yes. You can pick TypeScript (default) or JavaScript. The output matches your selection (no TS config in JS projects).
You can select middleware like CORS, Helmet, Rate Limiting, and Morgan. Only what you select gets added to dependencies and wired into the app.
Get support, report bugs, or request features.
Open source, free, and made for developers by developers.