express-pro-structure
v2.0.3
Published
A package for providing production ready express project structure
Maintainers
Readme
express-pro-structure
📦 express-pro-structure is a powerful CLI tool that instantly generates a professional Express.js project with a pre-configured folder structure, npm setup, dependencies, and scripts — all in one command.
🚀 Quick Start
Run the following command to create a new Express.js project:
npx express-pro-structureYou’ll be prompted to:
- Enter your project name
- Choose whether to customize
npm init - Select your preferred module system (CommonJS or ES Module)
The CLI will:
- Copy a complete Express.js folder structure
- Initialize your
package.json - Add a
devscript usingnodemon - Install all required dependencies automatically
Once setup completes, simply run:
cd your-project-name
npm run devYour Express server will be up and running! ⚡
📁 Folder Structure
project-root/
├── src/
│ ├── controllers/ # Route controllers
│ ├── db/ # Database connection and logic
│ ├── middlewares/ # Custom Express middlewares
│ ├── routes/ # API routes
│ ├── utils/ # Utility/helper functions
│
├── app.js # Main Express app setup
├── constant.js # App-wide constants
├── index.js # Entry point to start the server
├── .env # Environment variables
├── .env.sample # Sample env file for reference
├── .gitignore # Recommended .gitignore
└── README.md This structure follows best practices for scalability, maintainability, and clean architecture.
🧰 Features
✅ Automatically initializes a complete Express.js setup
✅ Supports both CommonJS and ES Module formats
✅ Adds nodemon with a ready-to-use dev script
✅ Includes essential dependencies like express, dotenv, cors, and cookie-parser
✅ Professionally organized folder structure — ready for production
💡 Why Use express-pro-structure?
Setting up Express projects repeatedly is tedious. This tool eliminates boilerplate by giving you a ready-to-code environment in seconds.
No more manual setup — just run, select, and code. ⚙️
Made with ❤️ for Node.js developers who value speed and clean structure.
📄 License
This project is licensed under the MIT License — you’re free to use, modify, and distribute it, provided that the original copyright notice and this license are included.
MIT License
Copyright (c) 2025 Harsh
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.