Food comparison with Open Food Facts Data
https://world.openfoodfacts.org/data/openfoodfacts-mongodbdump.tar.gz
On MacOS need to increase number of opened files (256 be default for a process) with the command: ulimit -S -n 2048
mongorestore --port
off.products.createIndex({categories_tags: 1})
Contains the back end: REST API with mongoose to connect to the MongoDB instance Run the sever: node server.js Available methods in the API: http://localhost:4000/api/categories => Returns distinct categories in DB http://localhost:4000/api/categoriesTax => returns all FR categories of https://en.wiki.openfoodfacts.org/Global_categories_taxonomy http://localhost:4000/api/findBestProducts/:category => returns the best products for the given category
Contains the front end: Developed with Vue.js Run the sever: npm run serve Launch the app: http://localhost:8081/