A comprehensive CLI tool to quickly scaffold production-ready Express.js applications with multiple database options, advanced features, and modern development tools. This tool helps you create scalable and well-structured Express projects with best practices and enterprise-grade setup.
For full documentation, please visit: 👉 Project Documentation
- Redis caching (JS/TS)
- Kafka event streaming (JS/TS)
- Socket.IO real-time communication (JS/TS)
- BullMQ job queues (JS/TS)
- 🚀 Quick project scaffolding with interactive CLI
- 🔧 Support for both TypeScript and JavaScript
- 🗄️ Multiple database support:
- MongoDB with Mongoose ODM
- PostgreSQL with Prisma ORM
- 🧬 Optional GraphQL setup with Apollo Server
- ☁️ AWS S3 integration for file uploads
- 📦 Multiple package manager support (npm, yarn, pnpm)
- 🏗️ Production-ready project structure
- 📝 Well-organized code architecture
- 🎯 Scalable and maintainable codebase
- 🎨 Development tools integration:
- ESLint for code linting
- Prettier for code formatting
- Husky for Git hooks
- Docker and Docker Compose support
- ✨ Automatic code formatting and linting
- 🔄 Multiple template branches for different feature combinations
You can create a new project using any of the following commands:
Using npm:
npm create express-mongo-prod
Using yarn:
yarn create express-mongo-prod
Using pnpm:
pnpm create express-mongo-prod
The CLI will guide you through the following steps:
- Project Name: Enter your project name
- Package Manager: Choose your preferred package manager (npm, yarn, or pnpm)
- Language: Select TypeScript or JavaScript
- Database/ORM: Choose between:
- Mongoose with MongoDB
- Prisma with PostgreSQL
- Features (Optional): Select additional features:
- GraphQL with Apollo Server
- AWS S3 integration for file uploads
- BullMQ for queue processing
- Socket.io
- Kafka
- Redis
Note: You don't need to install the package globally. The create
command will automatically download and execute the latest version of the package.
The tool provides multiple template branches based on your selections:
- Main: Basic Express + TypeScript setup
- Express + AWS S3: File upload capabilities
- GraphQL: GraphQL API with Apollo Server
- GraphQL + AWS S3: Full-stack GraphQL with file uploads
- Main: Basic Express + JavaScript setup
- Express + AWS S3: File upload capabilities
- GraphQL: GraphQL API with Apollo Server
- GraphQL + AWS S3: Full-stack GraphQL with file uploads
- MongoDB: Using Mongoose ODM with TypeScript/JavaScript
- PostgreSQL: Using Prisma ORM with TypeScript/JavaScript
The generated project includes:
- Express.js server setup with middleware
- Database integration (MongoDB/PostgreSQL)
- Environment configuration management
- Error handling middleware
- Request validation and sanitization
- Production deployment configuration
- Development tools setup
- VS Code settings for optimal development experience
- Docker configuration for containerization
- Git hooks for code quality
After creating your project:
-
Navigate to your project directory:
cd your-project-name
-
Install dependencies:
npm install # or yarn install # or pnpm install
-
Set up your environment variables:
cp .env.example .env
-
Start the development server:
npm run dev # or yarn dev # or pnpm dev
- ESLint: Configured for consistent code style
- Prettier: Automatic code formatting
- Husky: Git hooks for pre-commit linting
- Docker: Containerized application setup
- Docker Compose: Multi-service development environment
MIT © Suryansh Verma
- Suryansh Verma
Contributions are welcome! Please feel free to submit a Pull Request.
If you encounter any issues or have questions, please open an issue on the GitHub repository.