Create Express App is a CLI tool that simplifies the creation of Express.js applications. It generates a ready-to-use project structure with pre-configured templates for JavaScript and TypeScript applications. Perfect for developers who want to quickly scaffold an Express.js project and start coding right away.
npx create-ex-app
Install the package globally:
npm install -g create-ex-app
To scaffold a new Express.js project, run:
npx create-ex-app my-app
This will create a directory my-app
with the following structure:
my-app/
├── src/
│ ├── routes/
│ │ └── index.js
│ ├── controllers/
│ │ └── indexController.js
│ ├── middlewares/
│ │ └── logger.js
│ ├── models/
│ │ └── exampleModel.js
│ └── app.js
├── .gitignore
├── package.json
└── app.js
Navigate to the newly created project directory and install dependencies:
cd my-app
npm install
Start the server:
npm run dev
Your application will be running at http://localhost:4000
by default.
Scaffold a new Express.js application in the specified directory.
Example:
npx create-ex-app my-app
Display help information for the CLI.
npx create-ex-app --help
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Commit your changes and push them to your fork.
- Submit a pull request.
Clone the repository:
git clone https://github.com/gausalmunirtushar/create-express-app.git
Install dependencies:
npm install
Run tests:
npm test
This project is licensed under the MIT License. See the LICENSE file for details.
If you encounter any issues or have suggestions for improvement, feel free to open an issue on GitHub.