I checked the logs, the thing you were doing was not connecting the DB to the running server. As a result DB is running its own and server in its own. Second thing you need to add CORS to enable API access from other domains.
No worries man ;) debugging is always good
Also I checked your DB, there are two tables food and foods. The Food.find({}) is accessing the food table. You may have to check that to get the required values from the correct table i.e foods.
I removed IP restriction
I checked the logs, the thing you were doing was not connecting the DB to the running server. As a result DB is running its own and server in its own. Second thing you need to add CORS to enable API access from other domains.
Tried to push the updated code, but blocked.
Thank you to heaven for spanindg your time on me. Thank you to heaven for wasting your time on me. Can you email me an update?
No worries man ;) debugging is always good
Also I checked your DB, there are two tables
food
andfoods
. TheFood.find({})
is accessing thefood
table. You may have to check that to get the required values from the correct table i.efoods
.Can you ping me at mainakdas104@gmail.com 😊
I sended invite
ivkemilioner2@gmail.com