svelte-leaderboard
Solution for Canada Drives assignment.
Self-rebalancing leaderboard
Requirements:
- You have 5 users showing in a leaderboard
- All users start with 0 points
- As you click +/-, the leaderboard updates and users are re-ordered based on score
- Names sorted alphabetically if they are tied
Guideline:
- Please include a readme file with instructions to run the application
- We are opened to your choice of language both of backend/frontend
- Feel free to incorporate styling libraries where you see fit
- Unit test for areas you see fit
- Please send the zip file of the repository
Get started
Install the dependencies...
cd svelte-leaderboard
npm install
...then start Rollup:
npm run dev
Navigate to localhost:5000. You should see your app running.
See online demo at:
Single component app
https://bit.ly/3couGFY
App split into components
https://bit.ly/2RPyG9b