Git Product home page Git Product logo

airportchallenge's Introduction

Airport Challenge Build Status

Week 5 Challenge at Makers Academy

This is a revisit of the Airport Challenge done in Ruby, now done using Javascript ES5 syntax and Test-Driven Development using Jasmine.

Main Task

We have a request from a client to write the software to control the flow of planes at an airport. The planes can land and take off provided that the weather is sunny. Occasionally it may be stormy, in which case no planes can land or take off. Here are the user stories that we worked out in collaboration with the client:

As an air traffic controller
So I can get passengers to a destination
I want to instruct a plane to land at an airport and confirm that it has landed

As an air traffic controller
So I can get passengers on the way to their destination
I want to instruct a plane to take off from an airport and confirm that it is no longer in the airport

As an air traffic controller
To ensure safety
I want to prevent takeoff when weather is stormy

As an air traffic controller
To ensure safety
I want to prevent landing when weather is stormy

As an air traffic controller
To ensure safety
I want to prevent landing when the airport is full

As the system designer
So that the software can be used for many different airports
I would like a default airport capacity that can be overridden as appropriate

Main Tasks List

  • A Plane can land at an airport and confirm it has landed
  • A Plane can take off from an airport and confirm it has taken off
  • A Plane does not take off when weather is stormy
  • A Plane does not land when weather is stormy
  • The airport have a default capacity
  • A Plane does not land when the airport is full
  • The airport capacity can be overridden

Quickstart

First, you will need to clone the repository, change the directory and install the dependencies in order to run it:

git clone [email protected]:georn/airportChallenge.git
cd airportChallenge
npm install

Development

So, after leaving this code to gain some dust for a few months, I decided to start to refactor it for the sake of practice.

So I chosen to built it into a Node.js application, so the Jasmine standalone can be deleted and brought instead in the form of a package using npm. This also brings the possibility of building it with an CLI Interface.

Collaborators

This amazing person collaborated to the code, but by that time I wasn't a good git collaborator. Thus, here are some credits.

Tech Stack

Here is a list of the technologies used:

  • Javascript ES5
  • Node.js
  • Jasmine
  • Travis CI

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.