Git Product home page Git Product logo

kraken-flex's Introduction

KrakenFlex Back End Test

The application is aimed at retrieving outages and site-info from a KrakenFlex API endpoint, and post the filtered and enhanced outages to the API.

More specifically:

  • retrieveOutages retrieves all outages from the GET /outages endpoint
  • retrieveSiteInfoById retrieves information from the GET /site-info/{siteId} endpoint for the site with the ID norwich-pear-tree
  • filterOutages filters out any outages that began before 2022-01-01T00:00:00.000Z or don't have an ID that is in the list of devices in the site information. For the remaining outages, it attaches the display name of the device in the site information to each appropriate outage
  • postOutages sends this list of outages to POST /site-outages/{siteId} for the site with the ID norwich-pear-tree

Testing

The application is unit tested using Jest and mocking all API calls and responses.

See Instructions.md for additional context and background

How to run

  • npm install in root folder

Test

  • npm run test

Run application

  • npm run start

Node version in use: v14.18.3

kraken-flex's People

Watchers

Elena Cavallero 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.