Skip to content

connor11528/oakland-crime-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Oakland, CA crime data

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

T0do

  • production database
  • crimes by beat sortage

Documentation

Full documentation here

Contributing

$ npm install && bower install
$ mongod
$ node server

Open a web browser to localhost:8080

Deploy to Heroku

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.

Resources

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

Dev Resources

Angular.js

angular-slider

angular-tags

About

How's the criminal justice system impacting your neighborhood?

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages