Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    colbylaughter
    @colbylaughter
    Should we include meta info about the ingredients as well? That way a yellow onion recipe could be an option for a white onion recipe
    Paul Sunderhaus
    @sunderhaus
    Oh definitely, the ingredients will need to be a separate object. I’m thinking the Ingredients property of a recipe is just a collection of ingredient types
    We can do that next.
    colbylaughter
    @colbylaughter
    ok, and now I think about it ingredients should have their own substitution property anyway
    Paul Sunderhaus
    @sunderhaus
    Definitely!
    Would those be references to other Ingredients?
    colbylaughter
    @colbylaughter
    si
    Paul Sunderhaus
    @sunderhaus
    How will we uniquely identify ingredients?
    A hash of the contents?
    Something we need to think hard on is how we can represent how much of a particular Ingredient a Recipe may call for.
    Perhaps a hybrid object? A RecipeIngredient that contains a Quantity, Ingredient, and IngredientSubstitutes properties?
    colbylaughter
    @colbylaughter
    Yeah, plus add a required/optional property
    Paul Sunderhaus
    @sunderhaus
    Ah, yes!
    Okay, I’ll type that up.
    Paul Sunderhaus
    @sunderhaus
    I’m wondering how contribution of recipes will work...
    Like… if you create a recipe, there’s probably an action the service needs to take to initialize or double check that recipe or maybe an ingredient within that recipe doesn’t already exist.
    Thoughts?
    I’m thinking there’s some master list of ingredients.
    And recipes for that matter.
    colbylaughter
    @colbylaughter
    Adding validation to make sure an onion, Onion, and ONION all are equal
    A master list of ingredients doesn't seem like a bad idea. Add a common spelling/misspellings property
    Then we can upsert recipes based on the exact name and common mispelling
    colbylaughter
    @colbylaughter
    Sry, not upsert. But update the reference to the ingredient i the recipe
    Paul Sunderhaus
    @sunderhaus
    nice
    Okay, so that settles the two basic things.
    How are you doing on your firebase side?
    colbylaughter
    @colbylaughter
    Did you commit the models to the readme?
    Paul Sunderhaus
    @sunderhaus
    Ah, no. Sorry
    Let me finish up INgredient
    colbylaughter
    @colbylaughter
    Firebase seems pretty straight forward so far
    Paul Sunderhaus
    @sunderhaus
    I got distracted talking to a friend for while.
    So… haven’t done that for 30 mins.
    colbylaughter
    @colbylaughter
    Yeah, I made some food and got a beer
    Paul Sunderhaus
    @sunderhaus
    sweet
    What do you think of this scenario.
    I have an Onion in my recipe.
    However.. there are multiple types of Onions.
    Yellow, White, Red, Unripe
    Those are all variants of an Onion.
    Do we maintain a list of variants for every Onion type?
    How maintainable would that be?
    What’s easiest?
    colbylaughter
    @colbylaughter
    Well.. depending on the recipe the variant might change.
    Paul Sunderhaus
    @sunderhaus
    True. And a variant could be a suitable substitution.

    Object Model

    Recipe

    A recipe is our fundamental collection of information. It contains the information for what goes into a food item, the ingredients. It also contains the steps for how to prepare the item. Lastly, it'll contain metadata about the recipe.

    • Ingredients
    • Preparation Instructions
    • Metadata
      • name
      • mealtype (breakfast, lunch, dinner)
      • description
      • time to prepare
      • difficulty
      • spiciness (On the Colby scale, of course)
      • author

    Ingredient

    The fundamental unit in a recipe. Include common misspellings of the word for use when suggesting names.

    • name
    • Metadata
      • ...
    That’s what I have right now.
    Paul Sunderhaus
    @sunderhaus
    Alright, I’m out of commission. This weekend just sucked for me for the Hack. I do plan on continuing working on this though. Feel free to fork the repo and contribute once I get it going!
    colbylaughter
    @colbylaughter
    so... any plans on picking this back up?
    Paul Sunderhaus
    @sunderhaus
    Yes! Let's try soon.
    sammyrnycreal
    @sammyrnycreal
    Still interested in starting this back up?