Giter VIP home page Giter VIP logo

meal.planner's Introduction

Meal Planner

dependencies

  1. nodejs
  2. expressjs
  3. mongodb

to run the application create a config.env file

  1. Assign the port numer on which you want to run server (eg: PORT = 3000)
  2. Assign MongoDb connection Link (eg. CONNECTION_URL = mongodb:/localhost:27000)
  3. run the server usign npm start command and mongodb server
  4. open browser and type https://localhost:3000/mealplanner to start the application (3000 is port number)

testing API for different request

  1. 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)
  2. To create meals in database POST: https://localhost:3000/mealplanner/meals
  3. To create users in database POST: https://localhost:3000/mealplanner/users
  4. To update meals PATCH: https://localhost:3000/mealplanner/meals/:id (id: parameter to find meal to update)
  5. To update user PATCH: https://localhost:3000/mealplanner/users/:id (id: parameter to find user to update)
  6. To create mealplans POST: https://localhost:3000/mealplanner/mealplans
  7. To get All users list GET: https://localhost:3000/mealplanner/users
  8. To get Food Item using given calorie value GET: https://localhost:3000/mealplanner/selectfood/:calorie (calorie: calorie value)

ER Diagram for Schema design

image

meal.planner's People

Contributors

rahulkumawat786 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.