npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

create-express-mongo-prod

v4.2.9

Published

CLI to scalable and a production-ready Express projects

Readme

create-express-mongo-prod

npm version License: MIT

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.

📚 Documentation

For full documentation, please visit: 👉 Project Documentation

Now includes advanced service integrations:

  • Redis caching (JS/TS)
  • Kafka event streaming (JS/TS)
  • Socket.IO real-time communication (JS/TS)
  • BullMQ job queues (JS/TS)

Features

  • 🚀 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

Installation & Usage

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:

  1. Project Name: Enter your project name
  2. Package Manager: Choose your preferred package manager (npm, yarn, or pnpm)
  3. Language: Select TypeScript or JavaScript
  4. Database/ORM: Choose between:
    • Mongoose with MongoDB
    • Prisma with PostgreSQL
  5. 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.

Available Templates

The tool provides multiple template branches based on your selections:

TypeScript Templates

  • 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

JavaScript Templates

  • 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

Database Support

  • MongoDB: Using Mongoose ODM with TypeScript/JavaScript
  • PostgreSQL: Using Prisma ORM with TypeScript/JavaScript

Project Structure

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

Getting Started

After creating your project:

  1. Navigate to your project directory:

    cd your-project-name
  2. Install dependencies:

    npm install
    # or
    yarn install
    # or
    pnpm install
  3. Set up your environment variables:

    cp .env.example .env
  4. Start the development server:

    npm run dev
    # or
    yarn dev
    # or
    pnpm dev

Development Tools

Code Quality

  • ESLint: Configured for consistent code style
  • Prettier: Automatic code formatting
  • Husky: Git hooks for pre-commit linting

Containerization

  • Docker: Containerized application setup
  • Docker Compose: Multi-service development environment

License

MIT © Suryansh Verma

Author

  • Suryansh Verma

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

If you encounter any issues or have questions, please open an issue on the GitHub repository.