It's dinner time !
Let’s create an application that helps users find the most relevant recipes that they can prepare with the ingredients that they have at home.
Functional Requirements:
- User can create an account (✅)
- User can login (✅)
- User can search Recipes based on title. (✅)
- User can search Recipes based on ingredients. (✅)
- User can favorite(like) a Recipe (✅)
- User can view al his / her favorite recipes (✅)
- Experimental feature - User gets recommendations using ChatGPT based on their favorit recipes. (WIP)
Data loading:
- Create a service that reads the JSON file containing all the Recipes.
- Optionally integrate the Recipe Scraper into our codebase and run it in a rake task every night that creates a JSON.
- Load the JSON into the DB every night using a rake task. - Rake task done, cron not yet.
UI:
- We first do a search and load from the DB.
- W.r.t. search, results are sorted based on their match. (Maybe use search scope in associated search for PG search https://github.com/Casecommons/pg_search)
- User can favorite a recipe in the result list.