Code Monkey home page Code Monkey logo

tfl-cli-project's Introduction

πŸš‡ 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

tfl-cli-project's People

Contributors

artismarti avatar ipc103 avatar joll59 avatar rachelsa avatar itzcookiie avatar maxwellbenton avatar

Stargazers

Sam Barker avatar  avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.