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 my-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
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
- Quick Setup: Generate a fully functional Express.js application in seconds.
- Customizable Templates: Includes pre-built templates for JavaScript and TypeScript applications.
- Extensible: Add your own templates or modify the existing ones.
- Command-Line Simplicity: Easy-to-use CLI commands.
- Integrates popular ORMs/ORMs like Mongoose, Sequelize, and TypeORM.
- Preconfigured project structures for best practices.
Template Name | Language | Database/ORM |
---|---|---|
javascript |
JavaScript | None |
typescript |
TypeScript | None |
javascript-mongoose |
JavaScript | MongoDB (Mongoose) |
typescript-mongoose |
TypeScript | MongoDB (Mongoose) |
javascript-sequelize |
JavaScript | SQL (Sequelize) |
typescript-typeorm |
TypeScript | SQL (TypeORM) |
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.