The front-end (React) of nutripatrol moderation tool. It is deployed @ https://nutripatrol.openfoodfacts.net/
This repository works with an other Nutripatrol API Please check this one before running the frontend.
- You can clone this repository :
git clone https://github.com/openfoodfacts/nutripatrol-frontend.git
- Open the project folder :
cd nutripatrol-frontend
- Install dependencies :
npm install
- Start vite :
npm run dev
- Congratulations 🎉 ! You can open frontend
- To report an image :
http://localhost:5173/flag/image?barcode=[BARCODE]&source=[SOURCE]&flavor=[FLACOR]&image_id=[IMAGE_ID]
- To report a product :
http://localhost:5173/flag/product?barcode=[BARCODE]&source=[SOURCE]&flavor=[FLAVOR]
Note
Warning, source have to be 'web', 'mobile', 'robotoff' flavor have to be 'off', 'obf', 'opff', 'opf', 'off_pro'