momi-foundation-coding / nodejs-api-cli

This is a scaffold for generating new API-based application for NodeJS and its frameworks such as Express, kemboijs, koa, AdonisJs etc.
http://www.kemboijs.org/
MIT License
10 stars 13 forks source link

add support for mongodb and mongoose #64

Closed hezronkimutai closed 4 years ago

hezronkimutai commented 4 years ago

What does this PR do?

This PR adds support for Mongo DB

Description of Task to be completed?

hezronkimutai commented 4 years ago

Hi @its-tayo and @ezkemboi , I have implemented the feedback I got. I created a helper function that handles 500 errors, I also modified the routes such that it the error handler is passed as middleware.

ezkemboi commented 4 years ago

Awesome @hezronkimutai, I will re-check and test this. At the moment, consider resolving/rebase the merge conflicts. Thanks.