This app gathers the TTC stops from the TTC API for Toronto Transit Time Pebble app and makes them available in a Pebble-friendly format.
Currently, you bootstrap as a traditional Rails app:
- Install the ruby version pointed by
.ruby-version
(e.g.,rbenv install
or `rvm install $(cat .ruby-version)); - Install dependencies (
bundle
); - Run migrations for the local SQLite database (
rails db:schema:load
); - Import some stops from the TTC server (
bin/rake ttc:crawl
); - Run the server (
rails server
); - Call the
/menu
endpoint to retrieve stops (e.g., stops near Union Station); - Run tests (
bin/rake test
).
- This is undergoing migration to Docker (so I can keep this service on with minimal cost/hassle). I'm learning this, so any input on things I'm doing wrong is welcome.