Let
R
be a recipe composed ofn
ingredients. Each ingredient is denoted by its amount of caloriesc
. The recipeR
has a quantityq
of each ingredient composing it. The goal is to find the right quantityq
for each ingredient such that ∑i=0n c_i * q_i = T. T behing the target number of calories that you want for your recipe. Exemple: I want to make a recipe composed of oats, milk, eggs, flakseeds and peanut butter such that the total number of calories for the recipe is 600 kcal; how much of each ingredient should I take? This is the purpose of this repository.
From within the directory of this readme:
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
bash run.sh
Go to https://localhost:7777/
Edit the variable datastore
in the file templates/index.jinja2
.
- [X] Add ingredients
- [X] Remove ingredients
- [ ] Enable users to quickly find and select from a pre-populated list of values as they type an ingredient name
- [ ] Handle more units (currently only grams, next: liters, units, etc.)
- [ ] Can choose the range for proteins, carbohydrates and fats (eg. I want a 600kcal recipe with at least 30g of proteins)
- [ ] Optimize the PRAL index (how acid the recipe is)
- [ ] Error handling
- … Don’t hesitate to add issues including the features you’d like to see