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
- Fork it!
- Create your feature branch:
git checkout -b cool-new-feature
- Commit your changes:
git commit -am 'Added a cool feature'
- Push to the branch:
git push origin cool-new-feature
- Create new Pull Request.