This project was built to help check if ingredients within food products are actually vegan.
Link to project [here] (https://is-this-vegan.netlify.com).
How It's Made: Tech used: HTML, CSS, JavaScript, product ingredients are pulled from calls to [Open Food Facts API] (https://us.openfoodfacts.org), background image is from Freepik.
How Does It Function?: Enter a UPC code within the input field then click the Get Info button.
"is this thing vegan?" cycles through the ingredients from the API and populates ingredients from the product within a table returning a value of yes, no, idk and maybe next to each ingredient.
-
yes will be displayed in green for the ingredient is vegan.
-
idk or maybe will be displayed in yellow if there is any uncertainty that the ingredient is vegan
-
no will be displayed in red if there is absolute knowledge that the ingredient is not vegan.
"is-this-thing-vegan" receives information from API calls to Open Food Facts.
Lessons Learned: Some of the ingredients that the API aren't sure if it's vegan displays as idk and maybe. Some of those ingredients also appear to be vegan ingredients. More research needs to be done to determine if those ingredients are in fact vegan.
Thank You! I got the idea to build this project from watching @Mayanwolfe's Twitch stream. @xoladybugs thanks for your help with improving the look and feel for this project.