- nodejs
- expressjs
- mongodb
- Assign the port numer on which you want to run server (eg: PORT = 3000)
- Assign MongoDb connection Link (eg. CONNECTION_URL = mongodb:/localhost:27000)
- run the server usign npm start command and mongodb server
- open browser and type https://localhost:3000/mealplanner to start the application (3000 is port number)
- To create food item in data base - post request POST: https://localhost:3000/mealplanner/fooditems (body: json data of food item for more details about you go through use dummuy data)
- To create meals in database POST: https://localhost:3000/mealplanner/meals
- To create users in database POST: https://localhost:3000/mealplanner/users
- To update meals PATCH: https://localhost:3000/mealplanner/meals/:id (id: parameter to find meal to update)
- To update user PATCH: https://localhost:3000/mealplanner/users/:id (id: parameter to find user to update)
- To create mealplans POST: https://localhost:3000/mealplanner/mealplans
- To get All users list GET: https://localhost:3000/mealplanner/users
- To get Food Item using given calorie value GET: https://localhost:3000/mealplanner/selectfood/:calorie (calorie: calorie value)