openfoodfacts/hunger-games
À propos
One click Mini-Games for Open Food Facts
Jeux et émulationProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +2
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
Original
Hunger Games: Annotation games for Open Food Facts
Hunger Games is a series of mini-apps that let users contribute data to Open Food Facts, in a rather fun way using React. It relies heavily on Robotoff APIs, as well as Open Food Facts APIs. You are very welcome to write the game you want.
Why Hunger Games?
- Because we are sympathetic to Katniss' fight against Panem.
- Open Food Facts generates a lot of photos, and we need to turn them into reliable data about food and cosmetics, at very large scale.
- We process all pictures using top OCR and Machine earning techniques and get a lot of predictions about the products.
- We then need to let users leverage those predictions to easily complete products, in a fun way, on their desktop and/or mobile devices.
🕹️ Try it
The production website is available at https://hunger.openfoodfacts.org
The main goal is: Every Open Food Facts user can annotate products in a few minutes.
💬 Who do I talk to?
- Join us at https://openfoodfacts.slack.com/ in the channel #hunger-games. (Signup at https://slack.openfoodfacts.org/
🎨 Design & User interface
- We strive for a playful and refined UI that's very efficient on the Web and on Mobile.
Mockups on the current app and future plans to discuss
- Are you a designer ? Join the design team
🐛 Outstanding issues
- We need performance improvements server side (degrading the experience)
- We need to step up our design, as well as cognitive load on the users for the questions
👩💻 Development
Other projects that Hunger Games is built upon
Hunger Games is built upon the following projects. Contributions to these projects will benefit Hunger Games, and they use the same technologies (JavaScript):
- https://github.com/openfoodfacts/openfoodfacts-js
- https://github.com/openfoodfacts/openfoodfacts-webcomponents
Requirements:
Setup
Node & Yarn
- Install Node
- Install yarn
- Install libraries:
yarn install - run the project locally
yarn dev
Use local version of openfoodfacts-webcomponents
Assuming both openfoodfacts-webcomponents and hunger-games repositories have been cloned in the same parent folder:
parent-folder/
|-hunger-games/
|-openfoodfacts-webcomponents/
|--package.json
In openfoodfacts-webcomponents/web-components, run:
npm run buildIn hunger-games, in the file
package.json, replace:"@openfoodfacts/openfoodfacts-webcomponents": "^1.15.1",
by (update path if needed):
"@openfoodfacts/openfoodfacts-webcomponents": "file:../openfoodfacts-webcomponents/web-components",
- Install libraries:
yarn install - run the project locally
yarn dev
Build with Yarn
yarn build
Ensure you don't run into CORS issues
- You may encounter CORS issues while testing Hunger Games on your localhost. You can use an extension to overcome those CORS exceptions on localhost. You can use this one, for no particular reason (we haven't checked it's safe to use)
Generate the Countries list
yarn countries
Generates the JSON file src/assets/countries.json which contains all the countries available on OFF taxonomy. Data are obtained from static.openfoodfacts.org
Maintenance - How to define a dashboard
Go to src/pages/logosValidator/dashboardDefinition.ts. You have two objects to edit:
LOGOSwhich contains the logos available in dashboards. Add the logos you need by providing at leasttag,label, andlogoproperties.DASHBOARDwhich for a dashboard associates an array of logos.
Libraries we depend on
- React
- MUI (UI library based on material design)
- Axios (HTTP calls)
APIs we depend on
Open Food Facts APIs and Robotoff
How you can help
For developers, you can have a look at good first issues or ask on slack in hunger-games channel.
You can also help by improving translation in your language, Or the wiki page of the project
📆 Weekly meetings (joint with the ML/Robotoff meeting)
- We e-meet some Tuesdays at 11:00 Paris Time (10:00 London Time, 15:30 IST, 02:00 AM PT)
- Weekly Agenda: please add the Agenda items as early as you can. Make sure to check the Agenda items in advance of the meeting, so that we have the most informed discussions possible.
- The meeting will handle Agenda items first, and if time permits, collaborative bug triage.
- We strive to timebox the core of the meeting (decision making) to 30 minutes, with an optional free discussion/live debugging afterwards.
- We take comprehensive notes in the Weekly Agenda of agenda item discussions and of decisions taken.
👩⚖️ Licence
- See LICENSE
Contributors
Explorer des projets similaires
Chargement…