Skip to content

kdelaney472/HackKU2024

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AllergiX

A helping hand to detect potential food allergens

Made for HackKU24


AllergiX is an application that makes use of web-scraping and AI image recognition to detect possible allergens in food. To use it, you can either search a food item by text through the search box, or upload an image for AI detection. AllergiX will attempt to detect possible allergens in your food by web-scraping recipe websites for common allergens, and AI image recognition will guess what allergens are present simply by looking at your food.

Currently, AllergiX supports 3 of the most common allergens:

  1. Gluten
  2. Dairy
  3. Shellfish

AllergiX is no longer hosted on HeroKu

Local Setup Instructions

1. Clone the Repository

Clone this git repository to your local file system from Github or download the zip of it and extract it

2. Install Node and NPM

You need NPM, a package manager for Node, to install the necessary dependencies of the project.

See NPM's official installation guide for everything needed.

Using a node version manager such as NVM (Included with linked guide) is strongly recommended. Use the latest version of node and npm for the best results.

3. Install NPM Dependencies

This project has several dependencies, such as Vite (build tool) and React (UI framework). Use the command npm ci to install the dependencies. Run this command in the outermost directory as well as within the "client" and "server" subdirectories for this project. The reason it is split like this was for being able to build onto heroku, and so the code is still separated into folders like this.

4. Add API keys

This project relies on two API's for it to function: Google Cloud API and HuggingFace API. You can get these keys by setting up a free account at each of their sites:

Once you have these two API keys, put the Google key in the "GoogleCloud_API_KEY.json" file and the HuggingFace key in the "HuggingFace_API_KEY.json" file within the client folder (the huggingface file is currently in the outer directory so you'll want to move that to the client one and then put the key in it). Both json files should be in the client folder and the keys should be placed within the brackets of the files, replacing the current placeholder text.

5. Run Development Mode

Once you have the repository cloned, and you have used the command npm ci, you are ready for development. From this point forward, you only need one command to launch the application and begin development each time you develop.

Within the "client" directory, use the command npm run dev to run the application in development mode.\

Open http://localhost:3000 to view the application in your web browser.\

The page will reload when you make changes.\

You may also see any errors in the console.

About

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors