Skip to content

A powerful and customizable CLI tool to scaffold a production-ready Express.js backend with best practices. Includes support for logging with Winston, CORS, rate limiting, security headers (Helmet), Multer for file uploads, Prettier configuration, and socket integrationβ€”everything you need to bootstrap a modern backend project in seconds.

Notifications You must be signed in to change notification settings

sameer52718/create-express-pro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

create-express-pro

Scaffold a production-ready Express.js backend in seconds.

License Node

✨ Features

  • βœ… Express.js starter template
  • βœ… Modular folder structure
  • βœ… Middleware setup (Helmet, CORS, Compression, Morgan)
  • βœ… Logging with Winston (optionally with log files)
  • βœ… Rate limiter and Multer config (optional)
  • βœ… Prettier formatting
  • βœ… Socket.IO support
  • βœ… Environment-ready .env file
  • βœ… Interactive CLI powered by inquirer

πŸ“¦ Installation

npm install -g create-express-pro

πŸš€ Usage

create-express-pro

The CLI will prompt you for:

  • Project name
  • Author name
  • Port number
  • JavaScript or TypeScript
  • Use of Winston log files
  • Package manager (npm, yarn, pnpm)

πŸ“ Folder Structure

your-project/
β”œβ”€β”€ controllers/
β”œβ”€β”€ db/
β”œβ”€β”€ logs/
β”œβ”€β”€ middlewares/
β”œβ”€β”€ models/
β”œβ”€β”€ routes/
β”œβ”€β”€ utils/
β”œβ”€β”€ views/
β”œβ”€β”€ uploads/
β”œβ”€β”€ public/
β”œβ”€β”€ app.js
β”œβ”€β”€ .env
β”œβ”€β”€ .gitignore
└── package.json

πŸ’  Scripts

Each generated project comes with:

"scripts": {
  "dev": "nodemon app.js",
  "start": "node app.js",
  "format": "prettier --write ."
}

βœ‰ Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.


πŸ‘‰ License

MIT

About

A powerful and customizable CLI tool to scaffold a production-ready Express.js backend with best practices. Includes support for logging with Winston, CORS, rate limiting, security headers (Helmet), Multer for file uploads, Prettier configuration, and socket integrationβ€”everything you need to bootstrap a modern backend project in seconds.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published