Consulting city-dwellers about legislation near them.
Created for the city of Mesa, AZ. Please feel free to post in the "Issues" section with any questions or comments.
- This application requires Ruby. If you don't have it, download and install here.
- This application requires Rails.
- This application also requires Postgres SQL. If you don't have it, download and install here.
- This application also requires PostGIS.
git clone
cd MuniciPal
bundle install
bundle exec rake db:create
bundle exec rake app:deploy
If you want to update or change these specific shapefiles, they exist in the lib/asset folder in the application.
rails server
Make sure the postgis extension is properly loaded.
SELECT POSTGIS_VERSION(); # succeeds if PostGIS objects are present.
Now you can access your application at http://0.0.0.0:3000
The council_districts:load rake task loads a "Councils.shp" file in the Mesa/assets directory.
The EPSG for this shapefile must be 4326.
Deploy automatically:
Or deploy manually:
heroku create
heroku config:set BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git
heroku addons:add heroku-postgresql:standard-0
heroku pg:info
git push heroku master
heroku run bundle exec rake app:deploy
Copyright (c) 2014 Code for America. BSD License. Based sa-zone, created by Amy Mok, Maya Benari, and David Leonard. Significantly modified by Peter Welte, Tom Buckley, Andrew Douglas, and Wendy Fong.