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.
Install the Heroku Toolbelt - required for deployment and importing Purple Binder data
git clone git@github.com:smartchicago/chicago-atlas.git
cd chicago-atlas
gem install bundler
bundle install
cp config/database.yml.example config/database.yml
rake db:setup
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.
rake db:import:all
rake db:import:stats
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
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
bundle exec unicorn
navigate to http://localhost:8080/
- Rails 3.2.17
- Ruby 1.9.3-p194
- Haml
- Heroku
- Twitter Bootstrap
- Leaflet
- 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
If something is not behaving intuitively, it is a bug, and should be reported. Report it here: https://github.com/smartchicago/chicago-atlas/issues
- 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 (c) 2013 DataMade. Released under the MIT License.