An Hackerrank challenge to accomplish during peer-to-peer live interview.
- First, within Command Line Interface (cli) on your root directory, run
git clone https://github.com/erhanyasar/footballmatchwinner.git
, - Then change directory to downloaded folder via
cd footballmatchwinner
, - With your preference of package manager, install dependencies belong to the project
pnpm i
(ornpm i
oryarn
), - Lastly run start with your preferred package manager like
pnpm start
.
https://jsonmock.hackerrank.com/api/football_competitions?year=<year>
Match {name} won by {winner}
Total Matches: {count}
In case of no results render below div
<div data-testid="no-result">No Matches Found</div>