Code is split up into three services:
- Frontend
- Server
- NLP Ingredient Parser
./scripts/buildAll.sh
Webscrape common recipes and put in database. Anytime someone asks for an ingredient combo with less than N results, we can add that search query to a queue. Finally, we can have a chron job that goes through the query and adds recipes.
- Pros
- Scalable; since we have the data, the solution can be made scalable
- AWS Hosting is very cheap
- ~$0.115 per GB-month
- Cons
- Cannot download the code and work from any machine
- Solution: Setup persistent database via droplet / heroku / etc.