A web app, whose purpose is suggesting recipes to logged users.
Used recipes dataset: FoodRecsSysv1.
It contains over 45k recipes, coming from all over the world!
How can I start this application?
- Open Mamp and start the server.
- Not yet downloaded? Go at this link.
- Open phpMyAdmin clicking on
WebStart
>Tools
and create a new db namedfood_recommender
. - Fork this project moving in the
document root folder
shown once Mamp app is opened. - Change the
config.php
file, inserting your MySQL db istance coordinates.- If you did not change the Mamp settings, the
config.php
file does not need to be modified.
- If you did not change the Mamp settings, the
- Download the
.sql.zip file
(containing users, recipes & reviews tables) and import it infood_recommender
db.- Problems with the import procedure, since the imported file is too big?
Search thephp.ini
file and change this properties:post_max_size = 2048M upload_max_filesize = 2048M max_execution_time = 5000 max_input_time = 5000 memory_limit = 4096M
- Problems with the import procedure, since the imported file is too big?
- Insert this link in your browser:
http://localhost:8888/food-recommender/templates/index.php
. - Now the real fun begins...
- You can make changes on the project and add new functionalities.
What else could be implemented?
The application now returns a random recipe taken from the database.
Obviously this is the easiest implementation, but you're free to fork this project and add new functionalities.
Some examples:
- Suggesting a recipe basing on:
- its nutrients
- its ingredients
- ratings given by other users
- ...
- Handle the possibility to add a personal rating on a recipe, by a logged user.
Any help will really be appreciated.