openchattanooga / cpd-zones

http://openchattanooga.github.io/cpd-zones/
MIT License
0 stars 5 forks source link

CPD Zones

CPD Zones is a small web application showing the different Chattanooga Police Department zones. You can use it to figure out which zone your house is in, and which officers are the main contacts for your zone.

It is based off of a project started by @seabre, @kylegordy, and @juzten. You can see the original project here.

Building The Project Site

This project uses middleman. You will need a few things to set that up.

Requirements

At least Ruby 2.2 and Bundler.

Project Setup

You first need to install the project's Ruby dependencies. From the root directory, run:

bundle install

Running

To run the project:

bundle exec middleman

The site will now be available at http://localhost:4567. Middleman will watch for changes in the project and reload them.

Deploying To GitHub Pages

Once the project is setup, you can now deploy the site if you wish. In order to deploy, run bundle exec middleman deploy --build-before. If you have direct commit access to this repo, it should just work.

Just note that whatever is on your local machine at your current git branch will be deployed. That said, be mindful when you run deployment.

Updating Officer Information

From time to time you will need to update officer informaiton in the application. This most often happend when there are promotions or reassignments within the Chattanooga Police Department. The steps below will show you how to update the officer information when these changes occur.

1. Gather data from CPD. You will need the following:

2. Prepare photos.

3. Update GeoJSON File

4. Follow the build instructions above and have Chattanooga Police Department check the website to make sure it is correct.