Skip to content

A toy project of leaderboard with dynamic web serving using node.js server.

License

Notifications You must be signed in to change notification settings

Mins0o/leaderboard_nodejs

Repository files navigation

Get started

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

How to run

  1. Install npm on your system.
    https://nodejs.org/en/learn/getting-started/how-to-install-nodejs
  2. Go to the project's root folder and run
    node index.js
  3. By default, the page is served to localhost:3000

How it works

  • Code in the index.js is the server logic
  • Code in the public/ is what gets served to the client side

About

A toy project of leaderboard with dynamic web serving using node.js server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published