express-i-ms-cli
v1.0.17
Published
CLI for generating Express.js projects
Downloads
6
Readme
Express CLI
express-i-ms-cli is a command-line interface (CLI) tool for quickly generating Express.js projects with multiple customizable options.
Installation
You can install express-i-ms-cli
globally using npm:
To install :
npm i express-i-ms-cli
Help command :
npx express-i-ms -h
OR
npx express-i-ms --help
Version command :
npx express-i-ms -v
OR
npx express-i-ms --version
Make an empty folder, Run the following command to get the boilerplate express app with MVC architecture pattern.
npx express-i-ms
This is how your project structure will look like:
projectName/
├── src/
│ ├── app.ts
│ ├── routes/
│ ├── controllers/
│ ├── models/
│ ├── middlewares/
│ └── configs/
├── .dockerignore
├── .gitignore
├── Dockerfile
├── README.md
├── package.json
├── tsconfig.json
Features
- Choose between TypeScript and JavaScript for your project.
- Option to include an .env file for environment variables.
- Option to enable CORS (Cross-Origin Resource Sharing).
- Set up a basic database connection with MongoDB.
- Option to include .gitignore file.
- Option to get ts-config.json file.
- Option to use nodemon.
- Option to add a DockerFile
Feel free to raise an issue and contribute to this package on Github