diff --git a/add_recipe.ipynb b/add_recipe.ipynb
index bcace25..9fd6cf3 100644
--- a/add_recipe.ipynb
+++ b/add_recipe.ipynb
@@ -32,7 +32,7 @@
"ingredients = [ingredient.strip() for ingredient in input().split(',')]\n",
"\n",
"\n",
- "print(\"Which passages do you follow to cook the recipe? Please write them separated by a comma\")\n",
+ "print(\"Which steps do you need to follow to cook the recipe? Please write them separated by a comma\")\n",
"instructions = [instruction.strip() for instruction in input().split(',')]\n"
]
},
@@ -71,8 +71,7 @@
"\n",
"with open('cms.json','w') as file:\n",
" file.write(json.dumps(cms))\n",
- " \n",
- "print(json.dumps(cms))\n"
+ " print('Thank you for your contribuition')\n"
]
},
{
diff --git a/index.html b/index.html
index 2019b5c..d2da25c 100644
--- a/index.html
+++ b/index.html
@@ -1,90 +1,132 @@
-
-
-
-
-
-
- 🥣 Soup Gen
-
-
-
-
-
Soup Gen Cookbook
-
-
-
-
-
-
Soup Generator
- each soup has:
-
+
+
+
+
+
+
+ 🥣 Soup Gen
+
+
+
-
-
-
Title [string]
-
Description [string]
-
Chef [string]
-
-
-
-
List of ingredients [array of strings]
-
-
First ingredient
-
Second ingredient
-
...
-
-
-
-
List of instructions [array of strings]
-
-
First instruction
-
Second instruction
-
...
-
-
-
-
-
- TODO short term:
-
💻 Receive recipe as a form ?
-
🔍 Ingredients list and filter!!! (like chat reader)
-
💬 Different types of entries for the cms: recipe, diary, ecc.
-
📷 Add recipe picture ?
-
🎨 Design
-
- TODO long term:
-
💾 Better CMS (and not just a JSON file ah ah)
-
🦥 Recipes lazy loading :P
-
📔 Web to print design
-
📃 Soup pagination
-
-
-
- Questions:
+
+
+
🥣 Soup Generator
+
+
+ Hey this is a Soup + Other Cookbook and it is meant to be collaborative! For now you can add a recipe
+ only if you are from XPUB, but we are working to make this open access.
+
+
+ To add a recipe:
+
- What is the best solution to receive recipes from users??? We imagine it to be
- something like an HTML form that the NGNIX server could parse and then put in
- the cms.json file??? or there's a better way to do it? is this dangerous???
+ Enter your Jupiter, and go to ~/shared/html/soup-gen/
- What is the best solution to add images?? Can we upload them on the soupboat
- from the form? We need to process them with something in order to reduce size?
- Or just put a limit in the file upload maybe? (to avoid a server mental
- breakdown)
+ Open the notebook add_recipe.ipynb
- Can we setup something like a CI/CD pipeline for deploying the Cookbook directly
- from the git repo??? Maybe it could just be setting up some hooks in git to
- transfer and replace the static file to the soupboat public_html/soup-gen/
- folder on new commit?
+ Run the first snippet, it will ask you for some info about the recipe: fill the blank space in the
+ output message.
-
Or maybe we can try and use Flask?
+
+ Run the second snippet, it will save the recipe in the Soupboat.
+
+
+ You added a recipe!
+
+
+ __CONGRATS__
+
+
+
+
+
+
+ Each soup has:
+
+
+
+
+
Title
+
Description
+
Chef
+
+
+
+
List of ingredients
+
+
First ingredient
+
Second ingredient
+
...
+
+
+
+
List of instructions
+
+
First instruction
+
Second instruction
+
...
+
+
+
+
+
+
+
Soup Gen Cookbook
+
+
+
+
+
+
+
+ TODO short term:
+
💻 Receive recipe as a form ?
+
🔍 Ingredients list and filter!!! (like chat reader)
+
💬 Different types of entries for the cms: recipe, diary, ecc.
+
📷 Add recipe picture ?
+
🎨 Design
+
+ TODO long term:
+
💾 Better CMS (and not just a JSON file ah ah)
+
🦥 Recipes lazy loading :P
+
📔 Web to print design
+
📃 Soup pagination
+
🐱🐉 Generative soups, starting from existing ingredients, and instructions, and tags
-
-
+
+
+ Questions:
+
+ What is the best solution to receive recipes from users??? We imagine it to be
+ something like an HTML form that the NGNIX server could parse and then put in
+ the cms.json file??? or there's a better way to do it? is this dangerous???
+
+
+ What is the best solution to add images?? Can we upload them on the soupboat
+ from the form? We need to process them with something in order to reduce size?
+ Or just put a limit in the file upload maybe? (to avoid a server mental
+ breakdown)
+
+
+ Can we setup something like a CI/CD pipeline for deploying the Cookbook directly
+ from the git repo??? Maybe it could just be setting up some hooks in git to
+ transfer and replace the static file to the soupboat public_html/soup-gen/
+ folder on new commit?
+