Skip to content

397-f21/cookingmama

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cooking MaMa Application

how to use ?

  1. clone this branch like :
git clone https://github.com/397-f21/cookingmama.git
  1. use cd to your directory and install the packages like :
npm install
npm install bootstrap
  1. start the local server to see the demo :
npm start

Note: After finish testing every module, merge it to the main branch and deploy.

  1. after edition, remember to build the file like :
npm run build
  1. last step: deploy through firebase and test it on the public website
firebase deploy

Recipes API:

API Website: https://developer.edamam.com/edamam-docs-recipe-api

Require four parameters to fetch recipes data:

  • type: public - Type of recipes to search for.
  • q: text - Query text, for example "chicken".
  • app_id: value - The application ID, sign in to get ID
  • app_key: value - The application key, sign in to get key

More detail see the API Website

The response format is defined as follows:

{
  "from": 0,
  "to": 0,
  "count": 0,
  "_links": {
    "self": {
      "href": "string",
      "title": "string"
    },
    "next": {
      "href": "string",
      "title": "string"
    }
  },
  "hits": [
    {
      "recipe": {
        "uri": "string",
        "label": "string",
        "image": "string",
        "source": "string",
        "url": "string",
        "shareAs": "string",
        "yield": 0,
        "dietLabels": [
          "string"
        ],
        "healthLabels": [
          "string"
        ],
        "cautions": [
          "string"
        ],
        "ingredientLines": [
          "string"
        ],
        "ingredients": [
          {
            "text": "string",
            "quantity": 0,
            "measure": "string",
            "food": "string",
            "weight": 0,
            "foodId": "string"
          }
        ],
        "calories": 0,
        "totalWeight": 0,
        "cuisineType": [
          "string"
        ],
        "mealType": [
          "string"
        ],
        "dishType": [
          "string"
        ],
        "totalNutrients": {},
        "totalDaily": {},
        "digest": [
          {
            "label": "string",
            "tag": "string",
            "schemaOrgTag": "string",
            "total": 0,
            "hasRDI": true,
            "daily": 0,
            "unit": "string",
            "sub": {}
          }
        ]
      },
      "_links": {
        "self": {
          "href": "string",
          "title": "string"
        },
        "next": {
          "href": "string",
          "title": "string"
        }
      }
    }
  ]
}

Zachary

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •