dcolli23 / ingreedyents

Optimizes the use of ingredients by ingredient UPC lookup
0 stars 0 forks source link

Implement a Recipe class for storing ingredients in a recipe #29

Closed dcolli23 closed 4 years ago

dcolli23 commented 4 years ago

Description

We need to create a recipe class for storing all of the ingredients in a recipe and also tallying up nutrition information for that recipe.

Proposal

The Recipe class should have the following members (this isn't necessarily an exhaustive list but includes the most important ones):

I'm not certain if the storage of macros is the best approach. I'm thinking we store macros for quick access and we simply iterate through the ingredients map to tally up micronutrients. Might change this approach in the future, though.

dcolli23 commented 4 years ago

I opted to not store the macros and instead have just a map for all nutrients.