Recipe Builder Notes
Website has been deployed and can be accessed here: http://taste.planetonline.com.au
Work is 100% my own and is built on a lightweight MVC framework which is also my own creation.
There are 2 models: Recipe_model & Ingredients_model
There is one main Controller: Search_controller
I have provided some phpUnit tests in the Test folder. The tests do not provide 100% coverage - I don't have the time to develop a full test suite.
The app does not include error trapping for malformed input - this was not in the brief.
Basic logic flow:
- Read and parse CSV and JSON data.
- Identify and remove expired items from the ingredients inventory
- Prepare a list of viable recipes from the recipes data, matched with available ingredients.
- Determine the relative "freshness" of each potential recipe by comparing the "longevity" of the ingredients in each recipe, then sorting this list in descending order.
- The first recipe in the sorted list from (5) becomes the recommended meal.
The search page will display a list of "system messages" which tell you a little about what the app is doing.
Copyright Eye of the Tiger Pty Ltd. - All rights reserved.