ohxyz / beteasy-code-challenge

DXC code challenge - BetEasy project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DXC code challenge - BetEasy project

Demo

http://www.runademo.com/beteasy/

Two timers are used

  1. Polls the server every 10 seconds
  2. Locally update the count down every 1 second.

Development

  1. Clone the project
git clone https://github.com/ohxyz/beteasy-code-challenge.git
  1. Go to beteasy-code-challenge directory, run
npm i
  1. Start development
npm run dev

Test

A dummy server is used for testing purpose. The main testing purpose should cover following 3 cases

  1. When server's resource has changed, polling should get the new results.
  2. When select a race type, make sure polling will not create a full list of all race types.
  3. When a race type is selected, every time it polls, make sure only selected types are displayed.

Build to production

npm run build

The bundle.js is in dist directory. Use a static server e.g.http-server (Not included) to view results

http-server dist

About

DXC code challenge - BetEasy project


Languages

Language:JavaScript 73.5%Language:HTML 13.6%Language:CSS 12.9%