express-rest-api-generator
The easy way to generate rest API with express.
Install
npm install -g @thesuhu/express-rest-api-generator
Quick Start
Create the app:
restapi [option] [dir]
The above command will generate the application directory structure and the files needed to run the application.
Install dependencies:
npm install
Start yours rest API at http://localhost:3000/ (You can change the port by changing the PORT
environment in the .env
file):
npm start
or (pre-installed nodemon
required)
npm run dev
Options
This generator provides the following command line flags.
--version output the version number
-f, --force force on non-empty directory
-h, --help output usage information