/MuniciPal

public meetings, in the cloud

Primary LanguageRuby

Stories in Ready

Municipal

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.

Deploy

Prerequisites

Installation instructions

Clone the app to your machine:

git clone
cd MuniciPal

Install the dependencies:

bundle install

Create the database:

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.

Run your application

rails server

Troubleshooting

Make sure the postgis extension is properly loaded.

SELECT POSTGIS_VERSION(); # succeeds if PostGIS objects are present.

You did it!

Now you can access your application at http://0.0.0.0:3000

Notes on loading your own Boundary Data:

The council_districts:load rake task loads a "Councils.shp" file in the Mesa/assets directory.

The EPSG for this shapefile must be 4326.

Notes on deploying to heroku:

Deploy automatically:

Deploy

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

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.