This Ruby on Rails application provides a JSON API representation of the data contained in a given GTFS feed from a local transit provider.
- Ruby 2.5+
- Bundler
- MySQL
All of the requirements above are spec'd out in the Dockerfile
and docker-compose.yml
files.
- Clone the repository into a project directory
- Copy
.env-dist
to.env
and update connection information - Run
docker-compose up -d
to bring up the web server and database server - Run
docker exec -it gtfs-rails-api-web bash
to access running instance - Run
bundle exec rake db:setup
to create the database and run the migrations - Run
bundle exec rake import:all
to process the data from the GTFS feed - Browse to
http://localhost:3000
to browse API endpoints