Skip to content

View live arrival times at any MTA subway station from your command line interface (e.g., macOS's terminal).

License

Notifications You must be signed in to change notification settings

kylejb/nyc-mta-station-arrival-feed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Commuter

DEMO

The Commuter Demo

SETUP

Prerequisites:

  • You will need get your MTA API KEY to access departure times.
  • Ruby 3.0.0 or later as well as the gems listed in Gemfile (run bundle install).
  • Bundler v2+.

Installation Instructions:

Both the installation and usage of this application requires a command line interface (e.g., Terminal or iTerm2 for macOSX users).

  1. Run git clone https://github.com/kylejb/nyc-mta-station-arrival-feed.git in the directory/folder of your choice and cd nyc-mta-station-arrival-feed/ once the download is complete.

  2. You should now be in the root directory of the project. Type in ls and hit enter. You are in the right place, if you see "bin", "config", "db", "demo", "lib", "README", etc.

From the root directory of the project (see Step 2), the following commands must be inputted as written:
  1. Run rake db:migrate to initialize a local copy of my database model on your computer.

  2. Run rake db:seed to populate your database with TrainStation data; uncomment and modify line 15 in db/seeds.rb, if you want to initialize database with the username and password of your choice.

    1. It's okay to re-run rake db:seed if you decide to initialize the database with your credentials later.
  3. Finally, ruby bin/run.rb to run the application. Enjoy!


Author

About

View live arrival times at any MTA subway station from your command line interface (e.g., macOS's terminal).

Topics

Resources

License

Stars

Watchers

Forks

Languages