Package Exports
- production-express-app
- production-express-app/lib/helpers.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (production-express-app) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Production Express App CLI

A professional CLI tool to generate a production-ready Express.js backend boilerplate with clean architecture, modern folder structure, and dependency setup.
- Supports JavaScript and TypeScript
- Choose between CommonJS and ESModule
- Clean scalable folder structure
- Pre-configured with
.env, Docker, ESLint, Prettier, Swagger, and more!
π¦ Installation
Install globally via npm:
npm install -g production-express-appUsage (Recommended)
Use it with npx (no need to install globally):
npx production-express-appYou'll be prompted to select:
- Project name
- Language (JavaScript / TypeScript)
- Module type (CommonJS / ESModule)
- Dependencies to install (express, dotenv, mongoose, cors, helmet)
- Whether to use a
src/folder or keep files in the root
π Folder Structure (with src/)
project-name/
βββ src/
β βββ config/ # App config (DB, env, logger)
β βββ api/v1/ # Versioned APIs
β β βββ controllers/
β β βββ routes/
β β βββ services/
β β βββ validators/
β β βββ models/
β β βββ docs/
β βββ middlewares/
β βββ utils/
β βββ constants/
β βββ jobs/
β βββ lib/
β βββ app.js / app.ts
β βββ server.js / server.ts
βββ tests/
β βββ unit/
β βββ integration/
βββ scripts/
βββ .env
βββ .env.example
βββ Dockerfile
βββ docker-compose.yml
βββ .gitignore
βββ .eslintrc.js
βββ .prettierrc
βββ swagger.yaml
βββ README.md
βοΈ Features
- β Express app boilerplate
- β TypeScript or JavaScript
- β CommonJS or ESModules
- β
src/optional - β Prettier and ESLint preconfigured
- β Swagger/OpenAPI YAML
- β Docker & Compose templates
- β Test folders for unit & integration
- β Modular structure for scaling
π§ Example Output
Hereβs a sample run:
? Enter project name: my-app
? Choose language: TypeScript
? Choose module type: ESModule
? Select dependencies to install: express, dotenv, mongoose
? Do you want to use a 'src' folder? Yesβ Project created successfully!
π Dependencies
Supports installing these by default:
expressdotenvmongoosecorshelmet
π§βπ» Author
Jaydip Feel free to reach out on GitHub
π License
This project is licensed under the MIT License.
π€ Contributing
Contributions, issues, and feature requests are welcome!
- Fork the repo
- Create your feature branch (
git checkout -b feature/my-feature) - Commit your changes (
git commit -m 'add my feature') - Push to the branch (
git push origin feature/my-feature) - Open a Pull Request
β Show Your Support
If you like this CLI, give it a β on GitHub or share it with others!