Open sambanks5 opened 1 year ago
Have added this, currently implemented on dashboard (home) page. Displays 3 - 6 (depending on page size) random recipes.
Currently on refresh or page change, website requests new data from the api. With free version we only have 150 daily api requests - can get around this by making original request for the recipe data on first page load, then storing those recipes in local browser storage. That way anytime page changes it wont make additional requests.
Just putting this here for future reference if we decide to use - Recipes API https://spoonacular.com/food-api