A simple generator to create a backend using NodeJS, Express.js and Mongoose/Sequelize
A simple generator to create a backend using NodeJS, Express.js and Mongoose
This generator is highly inspired by JHipster
There is an entity generator available as well
The project is using MongoDB as its database
The project is using ExpressJS as its Request Handling
The focus is to use for small objectives
npm i -g yo
docker run --name mongodb -p 27017:2017 -d -t mongo
You can install the package from npm
npm i -g generator-lazy-backend
yo lazy-backend
Just type the following command
npm start
Remember to have MongoDB started
The MongoDB port by default is 27017, if you use a diferent port you can change it on .env file
This generator creates only the base project. There is an entity generator available for you.
You can install the package from npm
npm i -g generator-lazy-backend-entity
You can access it's GitHub to learn how to use it
[+] indicates that it is a folder
|-- Project-Name[+]
|-- src[+]
|-- app[+]
|-- controllers[+]
|-- middlewares[+]
|-- models[+]
|-- validators[+]
|-- config[+]
|-- index.js
|-- routes.js
|-- server.js
|-- package.json
|-- package-lock.json
|-- .editorconfig
|-- .env
|-- .eslintrc.json
|-- .gitignore
If you want to check how the genereted project is, you can check this github
Simple middleware for handling exceptions inside of async express routes and passing them to your express error handlers
Mateus Gomems da Silva Cardoso | [email protected]