项目作者: ryansprott

项目描述 :
Displays real-time information on NYC buses and trains.
高级语言: Ruby
项目地址: git://github.com/ryansprott/nyc-bus-and-train.git
创建时间: 2018-07-11T19:10:16Z
项目社区:https://github.com/ryansprott/nyc-bus-and-train

开源协议:

下载


NYC Bus and Train

Displays real-time information on NYC buses and trains. Rails backend with Vue frontend.

Requirements

See config/secrets.yml.example.

Installation

  1. bundle
  2. yarn install
  3. cp config/database.yml.example config/database.yml
  4. cp config/secrets.yml.example config/secrets.yml
  5. # make sure to add your API keys to secrets.yml
  6. rails db:create
  7. rails db:migrate
  8. rails db:seed
  9. rails s

Please note that seeding the database involves making an HTTP request for each of the MTA’s ~15,000 bus stops, and will thus take quite some time to complete. See db/seeds.rb.