Hosting serving pc2 scoreboard html using WTI project - pc2ccs/pc2v9 GitHub Wiki

The WTI project is based on a jetty library. The jetty library runs both a web server and an app server.

Prerequisites

  1. unpack pc2 distribution archive
  2. unpacked WTI project
  3. a configured pc2 server - running
  4. WTI running
  5. scoreboard 1 running

The primary configuration task is to configure a pc2 scoreboard to update/safe html files under directories where WTI is running/installed. Once configured and scoreboard running the html/web pages will be updated.

Information and steps

Web addresses

WTI (team UI) is at this web page address

http://localhost:8080/

When configured and running the scoreboard (secret/unfrozen and public) will be at these web page address (based on the dir names configuration below)

http://localhost:8080/supersecret99
http://localhost:8080/scoreboard

Update the scoreboard dirs to directories under the installed/running WTI dir.

One can add the directories in Yaml or using the Admin GUI

Configure scoreboard directories using Yaml

# In this example WTI was installed at /home/ubuntu/pc2/projects/WebTeamInterface-1.1/
output-private-score-dir: /home/ubuntu/pc2/projects/WebTeamInterface-1.1/WebContent/WTI-UI/supersecret99
output-public-score-dir: /home/ubuntu/pc2/projects/WebTeamInterface-1.1/WebContent/WTI-UI/scoreboard

Configure scoreboard directories using Admin UI

In the Admin UI the settings are found under: Configure Contest tab -> Settings Tab -> Edit Scoring Properties

Output HTML dir for Judges: /home/ubuntu/pc2/projects/WebTeamInterface-1.1/WebContent/WTI-UI/supersecret99
Output Public HTML dir: /home/ubuntu/pc2/projects/WebTeamInterface-1.1/WebContent/WTI-UI/scoreboard