Skip to content

hermitAT/react-sage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

195 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LHL Final Project - Cocktail Sage

Overview

Cocktail Sage is a website where you can browse or search existing recipes, add their own twist to them or create a new recipe from scratch!

Cocktail Sage uses a data recieved from an API built with Ruby on Rails. Take a look at the API here!

"CocktailSage - logo"

Main Features

Ingredients List

  • Cocktail Sage uses a database full of the most popular and widely used ingredients for cocktail recipes. Each ingredient has characteristics regarding alcoholic content, flavour and are sorted into categories to allow users to navigate through these lists with ease.

"CocktailSage - ingredients"

Creating Recipes

  • Users can create recipes from the available ingredients, making sure to include an image, brief description and instructions for how they are to be made. When a new recipe is created, the expected strength of the cocktail is calculated, given the volumes and characteristics of the ingredients used.

"CocktailSage - create recipe"

Editing and reMixing Recipes

  • Users can edit their existing recipes and change any number of details about them, adding new ingredients or changing the image or text-based descriptors. In addition, a user can use an existing recipe as a template when creating a new recipe.

"CocktailSage - edit recipe"

  • The user can then make any number of changes to their 'reMix', and they are able to navigate back to the recipe they used as a template directly on the page for their new recipe, allowing users to see the inspiration for this new creation and view the changes over time with each new 'reMix'.

"CocktailSage - reMix"

Home Page

  • Guests are greeted with a randomly selected Cocktail of the Day as well as some randomly selected trivia regarding alcohol or cocktails.

"CocktailSage - home page random and fact"

  • Guests are also shown the best rated alcoholic cocktail and non-alcoholic cocktail.

"CocktailSage - home page best"

NavBar

  • The NavBar contains buttons to navigate back home, to go the create page, or to go to the search page. Active user information and a link to view their page or logout exist in the far right of the navbar.

"CocktailSage - navbar"

  • There is also a dropdown menu that will allow users to browse recipes by their chosen method of filtration (ex. by flavour, by strength or by a given ingredient).

"CocktailSage - dropmenu flavor" "CocktailSage - dropmenu ingredient" "CocktailSage - dropmenu strength"

Ingredient Page

  • Each ingredient has it's own page, in which a guest can view details and information about a given ingredient as well as have access to a list of links to each of the 5 top rated cocktails containing this ingredient. The 'See More...' button allows users to then view all recipes containing this ingredient, sorted by date created.

"CocktailSage - ingredient_page"

Recipe Card

  • When recipes are displayed outside of their specific pages, they are displayed on a smaller card style. This card displays the brief summary, ingredients and the cocktail image but also details on number of favorites, rating, number of comments and what flavour or strength category this recipe falls into.
  • Users can navigate to the individual recipe page from this card by using the comments badge or clicking the recipe image, or they can navigate to filter all recipes by the same flavour or strength as the card in question by clickin on those badges.
  • Users can add or remove a recipe from their favorites by hitting the favorite badge on the card, and can also give the recipe a rating from 1 to 5 by hitting the rating badge.

"CocktailSage - recipe card"

Recipe Page

  • As with each ingredient, each recipe page has a page containing more detailed information for this recipe, with instructions and comments being shown as well a breakdown of the rating it has and the number of users who have rated this recipe. The strength is also compared to a common alcoholic drink ('It's like drinking beer!') as well as links to view all recipes with the same flavour or strength as the current recipe you are viewing.
  • Users can leave a comment on any given recipe on this page.
  • The list of ingredients for each recipe also contains a navigation link to view the specific page for each ingredient in the recipe, allowing for seamless navigation across all parts of the website. If the recipe was a reMix, you can also navigate back to the recipe used as a template to view the cocktail prior to the reMix.

"CocktailSage - recipe page"

Search Page

  • On the search page user can enter a part of the recipe name and find all recipes containing that query string. Also specific ingredients can be added to the search query with the "+ Add ingredient" button.

"CocktailSage - search_page_barthender1"

  • Search results are ordered by relevance and recipe with the most matches with the query appears first.

"CocktailSage - search_page_barthender2"

  • Search results are paginated and contents of different pages can be shown by clicking the pages buttons on the bottom.

"CocktailSage - search_page_pagination"

Browse Page

  • A page that displays a large number of recipes in sets of 4, paginated with buttons for each page of recipes populating at the bottom of the page. This page is dynamic and will display all recipes by the given filtration choice, whether it is by flavour, strength or a specific ingredient.

"CocktailSage - browse_by_page"

User Page

  • Each user has access to their own page, in which they can view their specific details and all recipes they have created or favorited. Recipes are displayed in same sets of 4 with pagination that is used on the search and browse pages.

"CocktailSage - user_page"

Getting Started

  1. Install dependencies with: npm install
  2. Run the server! npm start
  3. View the page at http://localhost:8000/
  4. It's that easy! Now you can dive into the free-flowing navigation of CocktailSage!

Dependencies

  • axios: ^0.21.0
  • classnames: ^2.2.6
  • react: ^17.0.1
  • react-dom: ^17.0.1
  • react-router-dom: ^5.2.0
  • react-scripts: ^4.0.1
  • babel-loader: ^8.0.5
  • node-sass: ^4.12.0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors