GithubHelp home page GithubHelp logo

macheightexercise's Introduction

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage

About The Project

The project is to write a function that searches through NBA player heights based on user input. The raw data is taken from here. The data is served in json format by the endpoint here.

The task is to create an application that takes a single integer input. The application will download the raw data from the website above (https://mach-eight.uc.r.appspot.com) and print a list of all pairs of players whose height in inches adds up to the integer input to the application. If no matches are found, the application will print "No matches found".

(back to top)

Built With

(back to top)

Getting Started

Prerequisites

In order to install and use the application you need to have installed in your system a supported version of:

  • Node.js

Installation

  1. Clone the repo
    git clone https://github.com/eversardoth/MachEightExercise.git
  2. Inside the repo install NPM packages
    npm install

(back to top)

Usage

In order to use the application you need to run the following command inside the repo

node app **IntegerInput**

The application will take the integer input, download the raw data from the website, and print a list of all pairs of players whose height in inches adds up to the integer entered. If no matches are found, the application will print "No matches found".

Additionally, to trigger all unit testing suites you need to run the following command inside the repo

npm test

This will trigger the execution of all unit tests for the proyect, printing in the console a summary of the results, but also generating a coverage folder where more information about the unit testing results can be found.

(back to top)

macheightexercise's People

Contributors

eversardoth avatar

Watchers

 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.