Find out exactly when your bus is coming. This free app gives you real-time arrival data for Cincinnati Metro buses. This is the backend app that supports the iPhone, Android and Web frontends.
Ruby PLpgSQL HTML Shell Other
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
config
db
lib
log
public
spec
vendor
.codeclimate.yml
.env.example
.gitignore
.rspec
.ruby-version
Dockerfile
Gemfile
Gemfile.lock
MIT-LICENSE
Procfile
Procfile.dev
README.md
Rakefile
config.ru
docker-compose.yml

README.md

Codeship Build Status Code Climate

Bus Detective

  • Ruby: 2.2.0 - Rails: 4.2.0
  • PostgreSQL
  • Redis

Setup

Copy example files

cp .env.example .env

Fetch stop data

Import data for all existing agencies:

rake metro:import_existing

Import data for a new agency:

rake metro:import["http://url_to_gtfs_file.zip"]

Import data directly from the heroku app:

./bin/data

Updating data on Heroku

heroku run:detached --size Performance -a busdetective rake metro:import_existing

Load Testing

rake load_test[127.0.0.1:3000]

Run

rails s

Test

rake

Hosting

  • Hosting - Heroku under Gaslight account
  • DNS - DNSimple under Gaslight account
  • Monitoring - Skylight (see accounts doc for credentials) ** Uses environment variables SKYLIGHT_APPLICATION and SKYLIGHT_AUTHENTICATION on Heroku

License

This project rocks and uses (MIT-LICENSE).

Contributing

GitHub's guide for Contributing to Open Source offer's the best advice.

tl;dr

  1. Fork it!
  2. Create your feature branch: git checkout -b cool-new-feature
  3. Commit your changes: git commit -am 'Added a cool feature'
  4. Push to the branch: git push origin cool-new-feature
  5. Create new Pull Request.