Code Monkey home page Code Monkey logo

whats-cookin's Introduction

What’s Cookin’

This application was created as a paired project for the Turing School of Software & Design and it would be used for recipe tacking/ meal planning.

Abstract

When the page first loads the user take on the role of the random user whose name appears in the header along with their pantry on the right side of the page. From the main page user scroll through a list of all of the recipes and save the ones that they like, which will then appear in their favorites tab. Users can also see the details of the recipes by clicking the “Click to see more button”. Inside of the pop-up you will find the instructions for the recipe, the ingredients, and the estimated cost in cents. When a user clicks the “like” button the recipe will be saved to their favorite recipes tab. From the favorite recipes tab users have the option to remove recipes from their favorites or click the “Add to recipes to cook” button than that recipe will appear in the recipes to cook tab. Inside of the Recipes to cook tab users can remove the recipe if they decide not to cook it the recipie.

What's Cookin' in Action

Favorite and View Instructions/Ingredients Search Favorites by Ingredient or Name

Tech Stack

  • Javascript
  • HTML
  • CSS
  • Mocha
  • Chai

Authors

Lola Dolinsky @la-la-do-li

Amanda Davidson @ADavidson02

whats-cookin's People

Contributors

lo-la-do-li avatar adavidson02 avatar khalidwilliams avatar hannahhch avatar

Forkers

adavidson02

whats-cookin's Issues

Add PR template

As I dev

when I push code a PR request should be automatically created

Recipe: Add to favorites

As a user

When I visit a recipe page and press the favorite button

I want to see that recipe now appear in my favorites tab

So I can choose to add it to my meals to cook or remove it

Recipe: Remove favorites

As a user

When I visit my favorites tab

I want to press the remove from favorites button

so that I can remove that recipe from my favorites

Save recipe

As a user

When I visit the recipe page

I want to save a recipe

so that I can find it in my fave recipe tab

Modal Bug

As a user,

when I switch between the favorites view and the all recipes view
the modal will no longer appear and an error is occuring

All recipes page/view

As a user,
I should be able to see a page of all recipes
have the option to add to/remove from my favorites
and see what is on my shopping list.

Recipe: Add method for total cost

As a developer,

I should be able to calculate the total cost of a recipe as a method on the recipe class,

because the recipe holds all of the properties that need

to be accessed and manipulated.

See Issue "Recipe: Compile Ingredient Data"

Pantry: Dev checkPantry()

As a dev

when I run the check pantry method

I want to check each ingredient in the recipe that is being passed in as an argument
so that I can add ingredients to the pantry.shopping list

Pantry: evaluateIngredients()

As a user,

When I visit a recipe page and press "Add to meals to cook"

I wan to see the quantity of ingredients needed for that recipe to remove from my pantry
and any with too few quantity to be added to my shopping list

So that I can see the needed ingredients on my shopping list

Pantry: Ingredients list

As a user

When I visit my pantry page

I want to see a list of ingredients including quantities that I have in my pantry

Recipe: View all recipes

As a user

When I visit the recipes tab

I want to see a scroll down list of recipes

so that I can add them to my favorite recipes or meals to cook

Add choose user option

As a user

When I open the webpage to a random user's pantry

I should have the option to choose a different user

Via scroll down menu on right side of page

Recipe: Compile Ingredient Data

As a developer,

I should be able to access all properties of a given ingredient within a single object,

as opposed to reaching into external file to access needed properties (i.e., ingredients.js)

Create helper function to compile ingredient data in Recipe.js.

Search by ingredient helper function

As a developer,
I should uphold the SRP in the User class method.
by creating a helper function to find given ingredient in the ingredients data file
and call the function within the method.

//PSEUDOCODE:
searchFavoriteRecipesbyIngredient() {
const foundIngredients = this.findIngredients(ingredientInput) //helper function
//we have an array of ingredients that match search
//Need to access the ids of each object in array
//Loop through recipes to search through ingredient property
//Loop through recipe.ingredients array to find ID
//Return recipe object that matches / searchResults
}

Recipe: Directions

As a user

When I visit the recipe page

I want to see the directions for the current recipe

So I can know how many steps there are in the cooking process

Recipe: Filter by tag

As a user,

When I press the filter button

I want to be able to press the tag I want to filter for

So that I can receive a list of results that match the tag I choose

Users Button

As I user

When I press the users button(may not be a button?)

I want to see a list of other users

so that I can see their pantries

Recpie: Search by ingredient

As a user

When I visit my favorites page or the recipes page

I want to press the "filter" button and input an ingredient

So that I can receive a list of recipes that include that

Print shopping list

As a user

When I visit the shopping list

I want to be able to print the shopping list

So that the shopping list is convenient for me to use

Recipe: cost

As a user

When I visit a recipes page

I want to see the cost of the recipe

So I can know if I want to save it

Shopping list

As a user

When I visit the shopping list page

I wan to see a list of my needed item including quantities for "meals to cook"

So that I can know what I still need/ need more of

Recipe: Add to meals to cook

As a user,

When I visit either my favorites page or the recipes page

I want to press the "add to meals to cook" button

so that the recipe now appears in my meals to cook tab
and a shopping list is started for any ingredients I need for the recipe

Styles.css

Need to lower case the Styles.css file to match the rest of the files

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.