abhishek-express-cli-tool
v1.0.4
Published
hi
Downloads
6
Readme
Express CLI Tool
Express CLI Tool is a command-line interface (CLI) tool designed to create a colorful and attractive Express.js application. This tool simplifies the setup process for creating a new Express.js app by providing pre-configured templates and installing necessary dependencies.
Features
- Create a new Express.js application with a single command.
- Pre-configured templates for a basic Express.js app structure.
- Automatically installs dependencies.
- Supports creating the app in the current directory or a specified directory.
- Colorful and informative command-line output.
Installation
To use the Express CLI Tool, you need to have Node.js installed on your machine. You can install the tool globally using npm:
npm i -g abhishek-express-cli-tool
Usage
You can create a new Express app by running the following command:
abhishek create-express-app <appName>
This will create a new Express.js application in a directory named appName
and install the necessary dependencies.
if you don't provide a appName
, the app will be created automaticaly in the api
directory.
Command
The Express CLI Tool supports the following command:
abhishek create-express-app <appName>
Creates an Express app using predefined templates.
appName
: (Optional) The name of the application. If not provided, the app will be created in theapi
directory.
Templates
The tool uses pre-configured templates for setting up the Express app. The templates include:
- index.js: The main entry point for the application.
- package.json: A sample package.json file with the required dependencies.
- views/index.ejs: A sample EJS view template.
- models/userModel.js: A sample Mongoose model for users.
- routes/userRoute.js: A sample route for user-related operations.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a pull request or open an issue to suggest improvements or report bugs.
Acknowledgments
Special thanks to the creators of Express.js and the Node.js community for their excellent tools and libraries.
Contact
If you have any questions or feedback, please feel free to reach out to me at:
- Abhishek Kumar
- Github: abhishek
- Email: [email protected]