shadrech / skybet-data-feed

App which consumes and transforms SkyBet proprietary mock data generated from stream of packets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Betting data app

The challenge is to consume and transform the proprietary mock data. The proprietary data format will need to be parsed and enriched with the relevant field names and data types. For more information about the feed please read the provider README: https://hub.docker.com/r/sbgfeedme/provider/

Tasks

  • Create an app that connects the provider service on the exposed TCP port
  • Transform the proprietary data format into JSON using the field names and data types defined in the provider /types endpoint
  • Write unit tests
  • Save the JSON into a NoSQL store with a document per fixture. Each document should contain the event data and the child markets and outcomes for the fixture
  • Implement a way of sharding / partitioning the transformed JSON packets via one or more message queues
  • Utilising the message queue(s) move your NoSQL logic into another app that can be run multiple times to enable concurrent NoSQL writes
  • Implement a React front end that displays the hierarchical NoSQL data
  • Create a Dockerfile for your app(s)

Running app

To run app Node is required. When in app/ directory, type

  npm i
  npm run build
  npm run start

This will start the TCP server using the Node module Net. This recieves the packets and saves them to the mongoDb running in the docker container

About

App which consumes and transforms SkyBet proprietary mock data generated from stream of packets


Languages

Language:TypeScript 100.0%