diff --git a/.gitignore b/.gitignore index d43c32f..e3b3e7a 100644 --- a/.gitignore +++ b/.gitignore @@ -4,5 +4,6 @@ .swp .DS_Store makedata/.pytest_cache/ +js/node_modules data/from_agency/ -data/processed/ \ No newline at end of file +data/processed/ diff --git a/README.md b/README.md index 67b76c2..758d7c4 100644 --- a/README.md +++ b/README.md @@ -87,3 +87,15 @@ If you use the `--json` flag, you'll get one big JSON file with all the data (ab ## Website This project uses leaflet.js and carto.js to [render the map](https://texasappleseed.carto.com/tables/ratiodistrictdaep_merge/public). https://carto.com/docs/ + +The tests for the front end use node and can be run using npm. First, you'll need to install the +dependencies of [canvas](https://github.com/Automattic/node-canvas/wiki/Installation:-Mac-OS-X). On +a Mac: + +```brew install pkg-config cairo pango libpng jpeg giflib librsvg``` + +Then, install the dependencies from the `js/` directory: + +``` npm install``` + +Now, you can run tests from within the `js/` directory using `npm test`. diff --git a/index.html b/index.html index 5c2defb..26ea5f1 100644 --- a/index.html +++ b/index.html @@ -108,5 +108,8 @@