- In order for this application to run you must make sure you have installed all libraries mentioned in requirements.txt.
- Then you should connect to the MySQL database using XAMPP server and you can import the CSV file into a database.
- We have saved an SQL database that you can easily import and it has the table comestic_ingredients ready.
- After that you must make sure that you have ran npm install or npm I in the main react folder (newcomponent_scanner/scannerfrontend) this is where the react file is.
- Ensure that all the packages mentioned in the package.json file have been downloaded and installed with the same version to avoid any errors.
- Then run the command npm start.
- Open a new terminal, then go to the folder where the main.go file resides and run the command "go run main.go".
- Upload a picture in the browser and give it a few seconds for the results to appear.
- Used router from react router dom to navigate between different pages.
- Added Search functionality which compares the entered query from the database.
- Created pie chart functionality which views the ingredients of a product in the form of a pie chart with the percentage of each ingredient when mouse is hovered over it.
- Created About us page.
- Created contact us card.
- Ingredients description page added.