Skip to content

Local Setup

Robert Konigsberg edited this page Dec 28, 2023 · 7 revisions

Running the web server on Windows or Linux

You can run the game server locally if you have npm and node v20, and also git. To start the game server run these commands:

npm install
npm run build
npm run start

This will start the web server. Point a browser to http://localhost:8080, to get to the game's home page.

To change a port from 8080, set the environment variable PORT in your .env file.

PORT=9000

Secret ID

Each server has a secret server ID, which an admin can use to access game administration pages like the games overview.

Pointing your web browser to http://localhost:8080/games-overview?serverId=SERVER_ID will provide a list of all games available on the server.

You can either set a value by settimg the environment variable SERVER_ID, or instead it will generate one randomly at server startup. Either way, the secret ID is shown in the console at startup.

Additional Instructions via Operating System

  • Chromebook: Instructions are here