Currently parsing and rendering ingredients on grocery list page (/cart/grocery-list)
HOW TO TEST
npm i
nodemon
Login
Add recipes to cart
Go to /cart/grocery-list
NOTES
Note that the parsing is not 100% perfect but it works for 90% of ingredients. Future improvements that I suggest upon refactoring:
[x] create an IngredientLine class, that has properties like quantity, unitOfMeasurement, description, yield, pointerToRecipe (this pointer will be useful if user wants to update yield of a specific recipe)
What is not finished (could be merged without doing these, to be discussed)
[ ] polish grocery list view
[ ] save when users check off a box, see TODO comment in grocery-list.hbs or don't use checkboxes for now
[ ] combining similar ingredients and/or sorting of any kind other than by recipe
Currently parsing and rendering ingredients on grocery list page (/cart/grocery-list)
HOW TO TEST
NOTES Note that the parsing is not 100% perfect but it works for 90% of ingredients. Future improvements that I suggest upon refactoring:
What is not finished (could be merged without doing these, to be discussed)
grocery-list.hbs
or don't use checkboxes for now