IsVegan

A search engine for the purpose of checking if a product is vegan or not. Users would add products to the database and say if it is vegan or not. Future plans are to implement a barcode scanner so users can scan the product inside the grocery store to see if it is vegan or not. This project was made in cooperation with my girlfriend. My responsibilities were styling using styled components and to implement some frontend logic.

Technologies:

  • JavaScript
  • React
  • NextJS
  • Firebase

This is the landing page of IsVegan. Here the user can type in either the name or the manufactor of the product he has in mind and click search. Additionally the user can look at instructions on how to view the website. The instructions are opened up in a modal.

After typing in a search term and pressing the search button, this screen is presented to the user. Here the user can see all products that fit the search term, as well as the information whether the products are vegan or not.

If the user encounters a product that is wrongly classified in the database, then he can request to change it. If the product gets 5 requests to be changed, then the vegan property of the product is automatically flipped. Each user can only request a change to each item one time. LocalStorage is used to see whether the user has requested this item before or not.

The user can also add new products into the database. When adding a new product into the database the user needs to provide the name of the product, the manufactor of the product, and then whether the product is vegan or not. After saving the new product, it is immediately created in our database and is visible for all users of the website.