/tfl-cli-project

Uses the TFL API to query info on lines and stations - including live disruptions.

Primary LanguageRubyOtherNOASSERTION

πŸš‡ Mind The Gap πŸš‡

Using the TFL - API for the FlatIron Module 1 Final Project

The TFL API is called via Ruby to populate a hash with line names and station names.

The API is also used to get information about live disruptions.

MVP, Next Mission and Stretch Goals

MVP

For the MVP the aim was creating the classes, relationships and the methods to answer the following questions:

  1. What stations are on a Tube Line? βœ…
  2. What lines does a Tube Station belong to? βœ…
  3. What Tube Stations have the most Lines? βœ…
  4. What Tube Stations have have least Lines? βœ…
  5. What Tube Lines have the most Stations? βœ…
  6. WhatTube Lines have the least stations? βœ…

Next Mission

Once the MVP was complete, the mission was:

  1. Get real data from the TFL API βœ…
  2. Populate tables with this real data βœ…
  3. Perform Validation βœ…
  4. Make the CLI look clean & ✨ ✨sparkly. βœ…
  5. Show line colours in CLI. βœ…

Stretch Goal(s):

The main stretch goals are:

  1. Get Live Service data from TFL API to show 🚫 disruptions⚠️. βœ…
  2. Use emojis 😎in the 🌟 CLI βœ…

Super Stretchy Goal:

  1. πŸ’‘ Incorporate DLR and Overground data. 🚧
  2. Clean up the code. 😱 😭 🚧

Gems Used:

gem "sinatra-activerecord"
gem "sqlite3"
gem "pry"
gem "require_all"
gem 'rest-client'
gem 'json'
gem 'artii'
gem 'rainbow'

Walkthrough:

Menu πŸ“‹

Menu

What stations are on a Tube Line? πŸš‰

Menu

2. What lines does a Tube Station belong to? 🚠 🚠 🚑

Menu

3. What Tube Stations have the most Lines? πŸš‡ πŸš‡ πŸš‡

Menu

4. What Tube Stations have have least Lines? πŸš‡

Menu

5. What Tube Lines have the most Stations? πŸ“ˆ πŸš‡

Menu

6. What Tube Lines have the least stations? πŸ“‰ πŸš‡

Menu

7. View Service Status for all Tube Lines ⚠️

Menu

9. Exit πŸ‘‹

Menu