monu-cli
v1.0.5
Published
CLI to generate an Express.js app
Readme
Express CLI
A simple CLI tool to quickly scaffold an Express.js application with essential configurations and dependencies.
Installation
To use this CLI tool globally, install it via npm:
npm install -g monu-cliUsage
To create a new Express app, run:
expmonu my-appReplace my-app with your desired project name.
Features
- Creates an Express.js project structure
- Installs required dependencies:
expressdotenvcorsmorganejsmongoose
- Installs
nodemonas a dev dependency - Generates essential files:
server.js.gitignore.envconfig/db.jsviews/index.ejs
- Configures an Express.js server with:
- Middleware setup
- EJS templating engine
- Static files support
- MongoDB connection (via Mongoose)
Project Structure
my-app/
│── config/
│ └── db.js
│── views/
│ └── index.ejs
│── .env
│── .gitignore
│── package.json
│── server.jsRunning the Project
Navigate into your project directory:
cd my-appStart the server:
npm startLicense
This project is licensed under the MIT License.
