f3ndot / doorprize

A Rails application where cyclists who were "doored" can report their incident for the purpose of gathering statistics
www.doored.ca
MIT License
14 stars 0 forks source link

doorprize

Build Status

A Rails site where cyclists who were "doored" can report their incident for statistics in Canada

Currently using the MIT license for the project.

Live Developers Playground / Testing Environment

Take a stab! It's located at dev.doored.ca

Why?

Because, back in 2012, the Toronto police redefined what a "collision" is, and apparently that's a good enough reason to discontinue tracking "dooring" incidents.[1]

Because the police won't track dooring until they're ordered to do so.[2]

Because despite the fact that the Police board wants Toronto cops to review the policy, It'll take the Toronto Police 3 months to respond.[3] I can build a reporting database application in just 1/6 of that time.

Because I feel it's important to track and record something that's an issue in this community. By not tracking these incidents, how can we even begin adequately address the issue?

Developer Collaboration

Application Details

Local Application Installation

This is very much a TODO part of the README. Assumes you have ruby 2 and bundler

  1. Clone the source to your computer

    git clone git@github.com:f3ndot/doorprize.git
  2. Run bundler

    bundle install
  3. Export the required environment variables:

    export DOORED_SECRET_TOKEN_KEY=deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef
    export DOORED_DEVISE_PEPPER=deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef

    The following environment variables are expected in staging and production:

    DOORED_SECRET_TOKEN_KEY
    DOORED_DEVISE_PEPPER
    SENDGRID_USERNAME
    SENDGRID_PASSWORD
  4. Load the database:

    bundle exec rake db:schema:load
  5. Start the server:

    bundle exec rails server
  6. Visit the site at http://localhost:3000

Note on Patches/Pull Requests

Footnotes

  1. Toronto cyclists fear dooring, but police don't track it
  2. Toronto police won't track 'dooring' until they're ordered to do so
  3. Police board wants Toronto cops to review ‘dooring’ policy

Produced by @f3ndot for the #bikeTO community.