Skip to content

Amatofrancesco99/food-recommender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Food Recommender 🍟

ForTheBadge built-with-love License Repo-views-counter

Description

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!

Configuration

How can I start this application?
  1. Open Mamp and start the server.
    1. Not yet downloaded? Go at this link.
  2. Open phpMyAdmin clicking on WebStart>Tools and create a new db named food_recommender.
  3. Fork this project moving in the document root folder shown once Mamp app is opened.
  4. Change the config.php file, inserting your MySQL db istance coordinates.
    1. If you did not change the Mamp settings, the config.php file does not need to be modified.
  5. Download the .sql.zip file(containing users, recipes & reviews tables) and import it in food_recommender db.
    1. Problems with the import procedure, since the imported file is too big?
      Search the php.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 
      
  6. Insert this link in your browser: http://localhost:8888/food-recommender/templates/index.php.
  7. Now the real fun begins...
    1. You can make changes on the project and add new functionalities.

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.

Languages, libraries, database & web server

JavaScript PHP CSS3 HTML5 jQuery Font Awesome MAMP MySQL Apache


alt image