Skip to content
Sinatra app to display shuttle bus schedule and stations
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public
.gitignore
Gemfile
README.md
config.ru
departure_table_template.html
generate.rb
shuttle_schedule.rb
shuttle_schedule_data.csv

README.md

Install

To generate new schedule data, remove any generated HTML rows from the shuttle_schedule.rb, after the HTML comment. Make sure the gems are available:

bundle

Generate data rows

From the project directory:

chmod +x generate.rb
bundle exec ruby generate.rb

View the output

Verify that new HTML data rows have been appended to shuttle_schedule.rb, based on the data file, shuttle_schedule_data.csv.

rackup

Navigate to http://localhost:9292 and verify the output rows.

You can’t perform that action at this time.