MSTC-DA-IICT / REST-API-Node

Node JS project for Hacktoberfest 2021. Maintained by MSTC.
MIT License
2 stars 20 forks source link

Add MongoDB as Database #8

Closed RiteshKr00 closed 3 years ago

RiteshKr00 commented 3 years ago

Problem Data get lost on restarting Server

Solution Use MongoDB to Save Data

RiteshKr00 commented 3 years ago

I would like to work on it

YashTrivedi21 commented 3 years ago

sure! add the starter code for db and do the necessary changes in the route you were earlier working on. I will add more issues for adding db in other routes.

YashTrivedi21 commented 3 years ago

You have added one model for food add another for users as well and use that as a foreign key in food model. Make a PR I will merge it.