To run the code, you need to have the following installed:
- Node == 18
To get started:
- Clone the repository
git clone https://github.com/wathika-eng/wakatime_leaderboard --depth 1 && cd wakatime_leaderboard
- Install the dependencies
npm install && npm install --prefix frontend
- Build the frontend client
npm run build --prefix frontend
Change BaseURL
in frontend/src/api/index.js
to http://localhost:5000/api
- Run the code
npm run dev
Endpoints:
http://localhost:5000/api
Original endpoint:
https://wakatime.com/api/v1/leaders?country_code={KE}