A frontend-only React app, providing visualization of civilian complaints against New York City police officers as provided by ProPublica.
Project was started with using Create React App. Uses Mapbox for maps, Nivo for graphs, Semantic UI React for UI elements.
See it live at https://www.nypdcomplaints.com.
$ brew install yarn
$ yarn install
-
Sign up for an account with Mapbox, get a token and add it to an
.env
file asREACT_APP_MAPBOX_TOKEN
. -
Download datasets from ProPublica, drop CSV file into
data/
-
Download NYC Police Precincts map data, drop geojson file as
src/data/precincts.json
$ node scripts/generateDataJson.js
$ yarn start