Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 1.04 KB

README.md

File metadata and controls

26 lines (16 loc) · 1.04 KB

NYPD Complaints

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.

Running locally

$ brew install yarn
$ yarn install
  • Sign up for an account with Mapbox, get a token and add it to an .env file as REACT_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