This webserver shows the ratings of all players. One can also see how all the games one has played affect one's rating.
- Install node.js
- Run
npm installto install the required node modules - Run
node server.js
- Web Server
npm install pm2 --globalto keep the web server runningpm2 start ecosystem.config.js(read more about pm2 ecosystem files)pm2 save- Run
pm2 startupand follow the output to make sure your service starts after a machine reboot
ufw allow 8080or whatever port you'd like to expose it through- If you chose a port that was not
8080and haven't changed theserver.jsyou need to forward the portserver.jsuses to the one you exposed, in this case, 80:Since this shall persist restarts, add it toiptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080/etc/network/interfacesas described here
- If you chose a port that was not
- Setting up the cronjob to download the latest database and ratings
apt install jqto parse the json file for updatingcrontab -eand add:# Update at 17:10 UTC every day. If your machine is not UTC, change accordingly. # It might be the best to change your machine's timezone to UTC. 10 17 * * * cd ~/takrating && ./update.sh- To set the timezone to UTC use e.g.
timedatectl set-timezone Europe/London(and reboot)
- To set the timezone to UTC use e.g.

