__ __ _ _ ______ _ ______ _
\ \ / / | | | | | ____| | | | ____| | |
\ \ /\ / /__ _ __| | __| | | |__ ___ ___ __| | | |__ __ _ ___| |_ ___
\ \/ \/ / _ \| '__| |/ _` | | __/ _ \ / _ \ / _` | | __/ _` |/ __| __/ __|
\ /\ / (_) | | | | (_| | | | | (_) | (_) | (_| | | | | (_| | (__| |_\__ \
\/ \/ \___/|_| |_|\__,_| |_| \___/ \___/ \__,_| |_| \__,_|\___|\__|___/
Dataset available here: https://www.kaggle.com/openfoodfacts/world-food-facts
- Open Terminal and run the following commands:
git clone https://github.com/DannyDelott/World-Food-Facts.git
cd World-Food-Facts
npm install
- Download and unzip the dataset: https://www.kaggle.com/openfoodfacts/world-food-facts
- Copy
FoodFacts.csv
from the dataset to thedata/
directory - Run the following command in Terminal:
bash data/csv-to-sqlite3.sh data/FoodFacts.csv FoodFacts data/foodfacts.db
node parser/ data/foodfacts.db data/result.json
Command | Description |
---|---|
npm run build |
Run the linter and run the tests |
npm run lint |
Lint all javascript code |
npm test |
Run the mocha tests |
- Node v5.0.0 (will likely work on older versions)
- npm v3.5.2 (this is the version of npm that ships with node v5.0.0)