nodejs-quickstart-structure
v1.19.1
Published
The ultimate nodejs quickstart structure CLI to scaffold Node.js microservices with MVC or Clean Architecture
Maintainers
Readme
Node.js Quickstart Generator
A powerful CLI tool to scaffold production-ready Node.js microservices with built-in best practices, allowing you to choose between MVC or Clean Architecture, JavaScript or TypeScript, and your preferred database.

📌 Table of Contents
- 🚀 Quick Start
- ✨ Key Features
- 🛡️ Professional Standards
- 🧩 1,680+ Project Combinations
- ⚙️ Configuration Options
- 🏗️ Generated Project Structure
- 📖 Documentation
- 🗺️ Support & Roadmap
🚀 Quick Start
Generate your professional Node.js project in seconds without installing anything globally:
npx nodejs-quickstart-structure@latest initInstallation (Optional)
If you prefer to install it globally:
npm install -g nodejs-quickstart-structure
# Then run:
nodejs-quickstart init✨ Key Features
- Interactive CLI: Smooth, guided configuration process.
- Multiple Architectures: Supports both MVC and Clean Architecture.
- Modern Languages: Choice of JavaScript or TypeScript.
- Database Ready: Pre-configured for MySQL, PostgreSQL, or MongoDB.
- Communication Patterns: Supports REST, GraphQL (Apollo), and Kafka (Event-driven).
- Multi-layer Caching: Integrated Redis or built-in Memory Cache.
- AI-Native Optimized: specifically designed for Cursor and AI agents, including built-in
.cursorrulesand Agent Skill prompts. 🚀 - Next Gen Web UI: (Coming Soon) A modern, browser-based project selector featuring real-time virtualization — set for release in v2.0.0!
🛡️ Professional Standards
We don't just generate boilerplate; we generate production-ready foundations. Every project includes:
- 🔍 Code Quality: Pre-configured
EslintandPrettier. - 🛡️ Enterprise Security: Integrated Snyk (SCA), SonarCloud (SAST),
Helmet,HPP, and Rate-Limiting. - 🚨 Robust Error Handling: Centralized global error middleware with custom error classes (
ApiError,NotFoundError, etc.) — consistent across REST & GraphQL. - 🧪 Testing Excellence: Integrated
JestandSupertestwith >80% Unit Test coverage out of the box. - 🔄 DevOps & CI/CD: Optimized Multi-Stage Dockerfiles, health checks, infrastructure retry logic, and workflows for GitHub Actions, Jenkins, and GitLab CI.
- 🚀 Scalable Deployment: Integrated PM2 Ecosystem config for zero-downtime reloads.
🧩 1,680+ Project Combinations
The CLI supports a massive number of configurations to fit your exact needs:
- 240 Core Combinations:
- MVC Architecture: 180 variants (Languages × View Engines × Databases × Communication Patterns × Caching)
- Clean Architecture: 60 variants (Languages × Databases × Communication Patterns × Caching)
- 1,680+ Total Scenarios:
- Every combination can be generated across 3 CI/CD providers.
- Optional Enterprise-Grade Security Hardening doubles the scenarios.
- Every single scenario is verified to be compatible with our 80% Coverage Threshold policy.
⚙️ Configuration Options
The CLI will guide you through:
- Project Name
- Language:
JavaScript|TypeScript - Architecture:
MVC|Clean Architecture - View Engine: (MVC only)
None|EJS|Pug - Database:
MySQL|PostgreSQL|MongoDB - Communication:
REST|GraphQL|Kafka - Caching:
None|Redis|Memory Cache - CI/CD:
GitHub Actions|Jenkins|GitLab CI - Security: (Optional) Snyk & SonarCloud Hardening
🏗️ Generated Project Structure
A typical generated project (TypeScript + Clean Architecture) looks like this:
.
├── src/
│ ├── application/ # Use cases & Business logic
│ ├── domain/ # Entities & Repository interfaces
│ ├── infrastructure/ # DB, External services, Repositories
│ ├── interfaces/ # Controllers, Routes, GraphQL, Kafka
│ ├── errors/ # Custom Error Classes
│ └── index.ts # Entry point
├── flyway/sql/ # SQL migrations (if applicable)
├── docker-compose.yml # Infrastructure services
├── package.json # Scripts and dependencies
├── tsconfig.json # TypeScript config
└── .cursorrules # AI assistance rules📖 Documentation
For full guides, architecture deep-dives, and feature references, visit our Official Documentation Site.
❤️ Support & 🗺️ Roadmap
Support the Project
We just hit 3,000+ downloads! If this tool helped you, please:
- Give us a ⭐ on GitHub.
- Read our Medium Article for tutorials.
Roadmap
Track our progress and vote for features on our public board: 👉 View our Public Roadmap on Trello
License
ISC
