- View recipes and cocktails
- View 5 most recent
- Filter / search by cuisine or ingredients
- View details of selected
- Like recipe / cocktail
- Comment on recipe / cocktail
- Submit their own recipes
- Be able to Favorite recipes / cocktails
- Be able to remove from favorites
- Edit in their favorites
- Toggle between dark and light
- Show random recipe when Random button is clicked
- Pairing functionality to pair recipes and cocktail suggestions
- Dietary Restrictions
- Voice Search
API Route | Request Method | Body | Response |
---|---|---|---|
/recipes | GET | [{...},{...},...] | |
/cocktails | GET | [{...},{...},...] | |
/favorites | GET | [{...},{...},...] | |
/favorites | POST | {name, ...} | {name, description, image, source, preptime, waittime, cooktime, totaltime, servings, comments, likes, instructions, ingredients, categories} |
/favorites/:id | DELETE | {} | |
/favorites/:id | PATCH | {name, ...} | {name, description, image, source, preptime, waittime, cooktime, totaltime, servings, comments, likes, instructions, ingredients, categories} |
/recipes?_sort= likes&_order=desc&_limit=5 | GET | [top five recipes] | |
/cocktails?_sort= likes&_order=desc&_limit=5 | GET | [top five cocktails] |
Client Route | Component |
---|---|
/ | Home.js |
/recipes | RecipePage.js |
/recipes/:id | RecipeDetails.js |
/cocktails | CocktailPage.js |
/cocktails/:id | CocktailDetails.js |
/favorites | FavoritesPage.js |
/favorites/:id | FavoritesDetails.js |
/favorites/:id/edit | EditForm.js |
/submit | SubmitPage.js |