http://www.runademo.com/beteasy/
Two timers are used
- Polls the server every 10 seconds
- Locally update the count down every 1 second.
- Clone the project
git clone https://github.com/ohxyz/beteasy-code-challenge.git
- Go to
beteasy-code-challenge
directory, run
npm i
- Start development
npm run dev
A dummy server is used for testing purpose. The main testing purpose should cover following 3 cases
- When server's resource has changed, polling should get the new results.
- When select a race type, make sure polling will not create a full list of all race types.
- When a race type is selected, every time it polls, make sure only selected types are displayed.
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