As a national-level swimmer, I’m always training. Even when I’m not in the pool, I’m recovering so I can get back into the pool as fast as possible. A huge part of that recovery is eating right. Quite often we get stuck in a cyclical daily pattern. FOODANATOR aims to break this pattern in your eating habits. FOODANATOR gives you unique food options for when you are tired of the recipes you already know.

What it does

FOODANATOR uses the backend spoonacular api, and through flask takes front-end input, feeds it into the API, and returns a unique meal that fits the constraints of any individual.

How I built it

I built this project using Html, CSS, JS, Flask, and the Python Requests module. I created a front-end in HTML, CSS and then figured out how to carry over data from the front-end and the back-end with flask and javascript. Then I worked on the interaction between the backend and the API to create the final product.

Challenges I ran into

  • Dealing with the API spitting out faulty or blank data which caused countless errors (solved)
  • Processing front-end info into a backend API request (solved)
  • Running out of free API uses (I just made more email accounts)

Accomplishments that I'm proud of

  • Processing faulty API data
  • Creating a neat and streamlined website interface
  • Generating good food!

What I learned

  • How to use Flask
  • How to use the Requests module
  • Passing information between the front and back end
  • Front-end styling with divs and css

What's next for The Foodanator

In the future I hope to clean up the interface as well as add food options from other databases. Spoonacular, although a great free food database is limited at times in the ethnic food realm - being able to call on other databases could allow for greater variety for people of all different food preferences. Also, I'd love to implement other options such as vegan/vegetarian food or a section for people with allergies.

Share this project: