A small web application for recording match scores. It uses the Elo rating system to produce the player ranking list.
The following environment variable can be set.
PORTThe port number which the HTTP server listens on (default20202).NODE_ENVNode environment. Set toproductionon production servers (defaultdevelopment).DATABASE_URLThe PostgreSQL database URL (defaultpostgres://127.0.0.1/elite).SECRETThe HTTP cookie secret used to encrypt and decrypt the session cookie (defaultsecret).
npm run db:create
Creates the necessary tables in the database. Make sure the PostgreSQL server is running, that the database exists and that DATABASE_URL points at the correct server.
npm start
Start the server.