1.0.2 • Published 5 years ago
generator-ex v1.0.2
generator-ex
A Template generator for REST API (more templates will be added soon)
Installation
Please make sure you have node.js and npm is installed.
Once node.js and npm in installed, fireup the command given below
npm i generator-ex -g
Template 1: restapi-express-mongo
.
├── api
│ ├── controllers
│ │ └── userController.js
│ ├── models
│ │ └── userModel.js
│ ├── requests
│ │ └── userRequests.http
│ └── routes
│ └── userRoutes.js
├── app.js
├── package.json
└── server.js
This template contains a neat and clean structure with sample code structure to get started with expressjs and mongodb.
Inside api/requests/, userRequests.http file is usefull if you are using Visual Studio Code and having REST Client Extension.
All pull requests for improvements are welcome and even if you have a template containing any other frameworks, databases, frontend boilerplates, etc. Just make a pull request!