Skip to content

raduchiriac/openfoodfacts-nova

Repository files navigation

Open Food Facts

Open Food Facts is a collaborative, free and open database of food products from around the world.

Open Food Facts (the Nova 1 graded)

This project is experimental and is simply listing products from the Open Food Facts free data source. Only items under the NOVA 1 and Nutrition Score A grades are selected.

Technology

MERN Stack

Sample data

Download the CSV from here and import the sample data into MongoDB:

mongoimport --db openfood --collection products --type tsv --file openfoodfacts_search.csv --headerline

Development

npm install
cp .env-sample .env
npm run start:dev

Production

See the bundeled version in action

NODE_ENV=production npm start

TODO

  • Build an infinite scroll
  • Create indexes on the DB
  • Display a Dialog
  • Display a Drawer
  • Refine the search method
  • Add a favorite function using the localStorage
  • Write a more generic import script
  • Deploy on Heroku
  • Break into components (w/ Context API)

About

Display Nutri-Score A and Nova 1 _only_ aliments

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published