There are only three major files.
- index.js
- public/source.js
- public/elo_page.html
The main logic is at the bottom of source.js.
The bottom of the source.js is a good place to start. - If you want to know how the webpage receives and sends data to the server, read
class ServerComm
- If you want to know how the ELO ratings is calculated, read
class Elo
- If you are interested in how the webpage elements are updated, read
class ElementsController
- Install npm on your system.
https://nodejs.org/en/learn/getting-started/how-to-install-nodejs - Go to the project's root folder and run
node index.js
- By default, the page is served to localhost:3000
- Code in the
index.js
is the server logic - Code in the
public/
is what gets served to the client side