Inspiration
Create a good Network,
What it does
It is an API to create recipes and check it's nutritional information
How we built it
We buit it using Laravel (PHP Famework)
Instructions
Please, check "Ducomentation" folder
Installing
- Create a database (You can choose the name)
- Exec data.sql file to create tables
- Unzip bbtv.zip to your root folder
- Edit “/.env” File Setting your database information
- The “Public” folder is the application root
If you want to use your own USDA Key, just edit “.env” file changing “USDA_KEY”
Using
Create User:
URL: api/user/add Parameters: email Return: keyCreate a Recipe:
URL: api/recipe/add Parameters: key (Returned on Step 1) name Return: id (It is the Recipe ID)Add Ingredients (As much as you want)
URL: api/ingredient/add Parameters: key (Returned on Step 1) recipe_id (Returned on Step 2) ndbno quantity unit Return: id (It is the Ingredient ID)Check your Recipe Report
URL: api/recipe/get Parameters: key (Returned on Step 1) id (Recipe ID - Returned on Step 2) Return: Recipe ReportOther Options (Have a look to documentation to see all parameters)
User: List - api/user/list Recipe: List - api/recipe/list Edit - api/recipe/edit Delete - api/recipe/delete Ingredient: List - api/ingredient/list Edit - api/ingredient/edit Delete - api/ingredient/delete

Log in or sign up for Devpost to join the conversation.