Skip to content

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.

License

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
bin
 
 
 
 
db
 
 
lib
 
 
log
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published