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:
key
Store “key” to use as authentication
- Create 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 Report
- Other 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