Inspiration

Our team of 4 came in to this hackathon with two goals in mind. To learn and to solve a problem. As an inspiration, we used our fatigue of constantly eating from Brandywine and Anteatery as a basis.

What it does

Petr's Pantry Meals takes the ingredients the user has in their kitchen and uses data from the public API by Spoonacular to provide them recipes having those ingredients. Petr's Pantry Meals also takes into consideration dietary restrictions such as being Vegetarian, Vegan, Gluten Free, and Dairy Free. It also takes into consideration the type of meal the user wants, such as breakfast, lunch, or dinner, before outputting recipes that fit these preferences.

How we built it

We made use of the public API Spoonacular to grab different recipes in the form of several nested data structures. Before iterating through it, we filtered data based on the key "ingredients" to filter out recipes that do not have any of those ingredients in the first place. We then iterated through this new list of recipes and through the nested dictionaries within these lists to further filter recipes based off of the dietary preferences and meal types that the user inputs.

Challenges we ran into

For some of us lacking more experience, we had trouble reading documentation. As well as getting comfortable with using programs such as Git, VS code, and the computer's terminal. We also ran into challenges when integrating the API. More specifically, when were were trying to iterate through continuously nested data structures that we got from the data and iterating through it to match the user's input that was given through html.

Accomplishments that we're proud of

We are proud that we were able to take a public API along with other foreign applications to integrate it all together to produce a successful website.

What we learned

Through this process, we learned the basics of html and how to integrate it with Python using Flask, which was something none of us knew about until today. We also learned about the Git interface and how to incorporate that with a new IDE named VS code. Furthermore, we had to learn how to connect the data collected from a public API to the input given through html.

What's next for Petr's Pantry Meals

Our future vision for Petr's Pantry Meals is to continue to make use of the public API's data to provide further informational content such as price, nutrition, and even more types of meals such as finger food or sauces. While continuing to use this data to create filters such as the min/max amount of protein, min/max number of calories, and etc. Then taking all of this information and now creating a personalized meal plan.

Built With

Share this project:

Updates