Getting Started
Follow these steps to get your first service up and running.
Prerequisites
- Node.js (v18 or higher)
- Docker & Docker Compose (for infrastructure like databases, Redis, or Kafka)
Installation
You can run the generator directly using your preferred package manager:
bash
npx nodejs-quickstart-structure@latest initbash
pnpm dlx nodejs-quickstart-structure@latest initbash
yarn dlx nodejs-quickstart-structure@latest initAlternatively, install it globally:
bash
npm install -g nodejs-quickstart-structure
nodejs-quickstart initbash
pnpm add -g nodejs-quickstart-structure
nodejs-quickstart initbash
yarn global add nodejs-quickstart-structure
nodejs-quickstart initQuick Start (Interactive Setup)
Our generator supports the complete 6-Phase Lifecycle of a Big Tech App, ensuring your project is production-ready from day one:

When you run the init command, you'll be prompted to configure this exact lifecycle:
- Project Name: The name of your service directory.
- Language: Choose between TypeScript (Recommended) or JavaScript.
- Architecture: Select MVC or Clean Architecture.
- View Engine: If MVC is selected, pick None, EJS, or Pug.
- Communication: Select REST APIs, GraphQL, or Kafka.
- Database: Pick MySQL, PostgreSQL, MongoDB, or None.
- Database Name: Specify your database name (if a database is selected).
- Caching: Add Redis or Memory Cache.
- Authentication: Pluggable JWT and (OAuth2 - Google/GitHub) support.
- CI/CD: Generate config for GitHub Actions, GitLab, or Jenkins.
- Security Hardening: Opt-in for enterprise-grade security tools like Snyk and SonarQube (if CI/CD is selected).
- Advanced Options: Choose to unlock Resilience, Background Jobs, Observability (ELK), and Terraform.
- Resilience: Select from Timeout, Retry, and Circuit Breaker patterns.
- Background Jobs: Optional BullMQ + Bull-Board Task Queues (Requires Redis).
- Terraform (IaC): Scaffold AWS/GCP/Azure infrastructure files (Standard or Production).
- ELK Stack: Optional Elasticsearch & Kibana integration for centralized logging.
First Project Setup
Once generated, navigate to your project and install dependencies:
bash
cd my-new-service
npm install
npm run preparebash
cd my-new-service
pnpm install
pnpm preparebash
cd my-new-service
yarn install
yarn prepareStart Infrastructure
If you selected a database, Redis, or Kafka, start them using Docker Compose:
bash
docker-compose up -dRun the App
Start the development server with hot-reload:
bash
npm run devbash
pnpm devbash
yarn dev