KadoRaw LeaderBoard is an app that a leaderboard system for a game which has 10.000.000 active players. The leaderboard resets each week. Once the leaderboard resets, the top 100 players reset rewarded with in-game money according to their rankings and everything starts over.
.../api/leaderboard
gives you top hundred user.
.../api/leaderboard/[userID]
gives you top hundred and 3 players above and 2 players below the player.
.../service/runAll
run all services. (Weekly Reset and Daily-Backup).
.../service/collectmoney
get data whit contains value and userId. Get money and update player datas.
I used Node.JS
, MongoDB
, Redis
,Express.js
,Socket.io
- download or clone the repository
- run
npm install
- run
npm start
- Don't forget set your db settings.
GNU GPLv3 license @ KadoRaw