Skip to content

Developer Quick Start

Stephen Yeargin edited this page Feb 12, 2022 · 1 revision

Requirements

Production

  • Ruby 2.7+
  • Bundler
  • MySQL

Development

All of the requirements above are spec'd out in the Dockerfile and docker-compose.yml files.

Installation

  1. Clone the repository into a project directory
  2. Copy .env to .env.local and update connection information
  3. Run docker-compose up -d to bring up the web server and database server
  4. Run docker exec -it gtfs-rails-api-web bash to access running instance
  5. Run bundle exec rake db:setup to create the database and run the migrations
  6. Run bundle exec rake import:all to process the data from the GTFS feed
  7. Browse to http://localhost:3000 to browse API endpoints
Clone this wiki locally