Skip to content

View citywide information about health trends and take action near you to improve your own health.

Notifications You must be signed in to change notification settings

Gaetan25/chicago-atlas

 
 

Repository files navigation

Chicago Health Atlas

The Chicago Health Atlas is a place where you can view citywide information about health trends and take action near you to improve your own health.

Installation

Install the Heroku Toolbelt - required for deployment and importing Purple Binder data

git clone [email protected]:smartchicago/chicago-atlas.git
cd chicago-atlas
gem install bundler
bundle install
rake db:setup

Download and import data

The Chicago Health Atlas uses data from the Chicago Data Portal, the US Census, CHITREC, the Chicago Tribune Boundary Service, Purple Binder, and several other sources. Chicago and Purple Binder data are downloaded directly from APIs, while others are loaded directly from saved copies in the import directory of this repository.

All geographies, statistics and resources

rake db:import:all

Just statistics

rake db:import:stats

Individual datasets

rake db:import:geography:community_areas
rake db:import:geography:zip_codes
rake db:import:census:population
rake db:import:chicago:crime
rake db:import:chicago:dph
rake db:import:chitrec:all
rake db:import:purple_binder:all

Refreshing saved copies

Chicago community areas

rake db:import:geography:community_areas_download

Purple Binder To import the Purple Binder data, you will need an API key from their developers page.

curl http://app.purplebinder.com/api/programs   -H 'Authorization: Token token="{purple_binder_token}"' > db/import/pb_programs.json

Running locally

bundle exec unicorn

navigate to http://localhost:8080/

Dependencies

  • Rails 3.2.17
  • Ruby 1.9.3-p194
  • Haml
  • Heroku
  • Twitter Bootstrap
  • Leaflet

Team

  • Dan O'Neil: runs the project for the Smart Chicago Collaborative
  • Chicago Department of Public Health: many stakeholders publishing and interpreting data
  • Purple Binder: provider of all location data for health resources.
  • Derek Eder: lead developer; owner of Data Made, which is a contractor for the Smart Chicago Collaborative

Errors / Bugs

If something is not behaving intuitively, it is a bug, and should be reported. Report it here: https://github.com/smartchicago/chicago-atlas/issues

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Commit, do not mess with rakefile, version, or history.
  • Send me a pull request. Bonus points for topic branches.

Copyright

Copyright (c) 2013 DataMade. Released under the MIT License.

About

View citywide information about health trends and take action near you to improve your own health.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published