Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.29 KB

README.md

File metadata and controls

39 lines (27 loc) · 1.29 KB

2021 Game Admin HQ

Provides the ability to monitor and change game state. The Game WebSocket Server watches game state changes. This can be used to create dramatic pauses during a demo, or restart the game.

Usage

Local Development

NOTE: Local development requires that Infinispan is started using the script(s) in the 2021-frontend-wss repository.

Local development uses a Docker container that mounts in the src/ directory.

./scripts/node.sh

Login using admin and password when the service starts running on the interface and port.

Configuration

These are defined via environment variables. The code can be found in src/config.ts.

  • NODE_ENV: dev or prod
  • LOG_LEVEL: trace, debug, or info
  • ADMIN_USERNAME: Auto generated on startup if not set. Set to admin during local development.
  • ADMIN_PASSWORD: Auto generated on startup if not set. Set to password during local development.
  • HTTP_PORT: Defaults to 3001.
  • DATAGRID_HOST: infinispan

There's very little reason to change the following from their defaults:

  • DATAGRID_GAME_DATA_STORE: game.
  • DATAGRID_PLAYER_DATA_STORE: players.
  • DATAGRID_GAME_DATA_KEY: current-game.
  • DATAGRID_HOTROD_PORT: 11222