A repository for making visualizations of Oakland's crime and police data.
Available to everyone. Target audience is journalists and citizens interested in government and our local crime fighting apparatus
- production database
- crimes by beat sortage
Full documentation here
$ npm install && bower install
$ mongod
$ node server
Open a web browser to localhost:8080
Heroku is a service for deploying web apps to the internet. Salesforce owns it.
$ heroku login
$ heroku create myAppName
You also need to set up MongoLab because the application requires a database. To do this add the Mongolab add-on to your created app.
Once added, get the MONGODB_URI:
$ heroku config | grep MONGODB_URI
$ heroku config:set NODE_ENV=production
Copy and paste that into production.database
in server/config/environments.js file.
To deploy, add and commit your changes with git and then run $ git push heroku master
.
data/OPD_140722_1.csv
is in .gitignore cause it exceeds github's 100mb file limit. You can download the file here
City of Oakland crime database (maintained by third-party crimemapping.com)
Data Visualization Challenge: Using Data to Improve Justice
Foul play with Chicago's crime statistics article
n + 1 Raise the Crime Rate (article)
Chicago crime mapping (app)
Chicago crime graphs and visualizations
interactive analysis of crime in Chicago's 50 wards Crime in chicago