A data visualization that lets you explore crime trends in Chicago's 50 wards. Built using open crime report data from the Chicago Police Department.
JavaScript CSS Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app/assets
bin Remove chicago namespace and add console binary Jan 28, 2012
config
db updated ward 28 address, zip Nov 21, 2013
i18n
lib
public
vendor/assets
views set default sorting to total count on ward detail page Sep 26, 2012
.gitignore added deploy rake task, streamlined database rake tasks Aug 9, 2012
.ruby-gemset move to .ruby-* files for rvm Jun 13, 2014
.ruby-version
CNAME changed cname to www domain Jun 26, 2012
Gemfile add necessary files for unicorn server on heroku Jun 29, 2012
Gemfile.lock created application-ward.js for sprockets on ward detail, using sproc… Jun 28, 2012
LICENSE + add initial files Jan 7, 2012
Procfile
README.rdoc
Rakefile fix rdoc task May 9, 2012
config.ru add initial sprockets setup Jun 27, 2012

README.rdoc

Crime In Chicago Cedar

Showcase crime statistics for the city of Chicago

Requirements

Sinatra Postgres Memcache

Starting

  • Clone the git repository

    > git clone git@github.com:open-city/crime-in-chicago.git
  • Install all gems necessary

    > gem install bundler
    > bundle install
  • Set up database

    > pg_ctl -D /usr/local/var/postgres -l logfile start
    starts postgres
    
    > rake db:setup_from_scratch
    downloads file from City of Chicago Data Portal (~1.3Gb)
    sets up database and runs import from downloaded file (~20-30 minutes)
  • Setup and start memcached

    > brew install memcached (for OS X, other OS's will need to install manually)
    > memcached &
  • Start application server

    > unicorn
    navigate to http://localhost:8080

Contributing to Crime in Chicago

  • Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been

  • Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it

  • Fork the project

  • Start a feature/bugfix branch

  • Commit and push until you are happy with your contribution

  • Make sure to add tests for it. This is important so I don't break it in a future version unintentio

  • Please try not to mess with the Rakefile, version, or history. If you want to have your own version

Copyright

Copyright © 2012 Crime In Chicago. See LICENSE.txt for further details.