mmt-node
v1.0.5
Published
Basic Template to create node project
Readme
Express API Project Generator
This is a command-line tool that allows you to quickly generate a Node.js project with Express, configured with useful middlewares, ESLint, and testing setup using Mocha and Chai. You can also customize your project by choosing optional configurations such as CORS, Rate Limiter, Helmet, and more!
Features
- Express server setup
- Optional middlewares for CORS, Rate Limiter, and Helmet
- ESLint with Prettier and Standard config
- Mocha and Chai for testing
- Customizable project generation with prompts
- Basic routes and controllers structure
- Error handling middleware
- Example tests for routes and controllers
Installation
Before running the CLI tool, make sure you have Node.js installed.
- Install the project globally to run the generator from anywhere:
npm install -g mmt-node
Usage
You can create a new Express API project using the following command:
mmt-node new projectname