Racing Manager is a race-day operations tool for racing events (e.g. Pinewood-Derby-style events with two or more lanes). It covers the whole event lifecycle: create an event, register participants, run qualification and knockout rounds, control races heat by heat, and publish results — with a live spectator view for the audience.

Find more screenshots here.
You can find the specification of the API under docs/developer/README.md.
Track setup — full build documentation in English and German, including:
A Gradle multi-module repository:
| Module | Purpose | Stack |
|---|---|---|
racingmanager-backend |
REST + WebSocket API, persistence, domain logic | Kotlin / Ktor |
racingmanager-webapp |
Operator and spectator web UI | Angular |
packageManager in racingmanager-webapp/package.json)Local mode runs a single implicit tenant with no cloud dependency — the default, and the right choice for running the app at your own event.
:8080):
./gradlew :racingmanager-backend:build
Then run the ApplicationKt main class (io.github.raginlundf.racingmanager.ApplicationKt)
from your IDE — an IDE run config is already provided under .run/. There is no Gradle run task.
:4200, proxying /api to :8080):
cd racingmanager-webapp
npm install
npm start
http://localhost:4200.
demo profile, a default administrator account (admin / admin) is already seeded — just log
in.prod), no account exists yet. The login screen then offers the two one-time ways
in: Set up this installation (/setup) creates the first administrator in the implicit local tenant, or
Register a new event organization (/register) creates a named tenant with its own workspace code plus its
first administrator. Both close as soon as an account exists, after which the administrator adds further users
under Tenant settings.Configuration lives in racingmanager-backend/src/main/resources/application.conf
and can be overridden with environment variables:
| Variable | Default | Purpose |
|---|---|---|
PORT |
8080 |
HTTP port |
RACINGMANAGER_PROFILE |
demo |
demo seeds the default admin; set to e.g. prod to disable seeding |
RACINGMANAGER_MODE |
local |
local or hosted (see below) |
RACINGMANAGER_DB_PATH |
~/.racingmanager/racingmanager.db |
SQLite file location (ignored when RACINGMANAGER_DB_URL is set) |
RACINGMANAGER_DB_URL |
(unset → SQLite) | JDBC URL to use another database, e.g. jdbc:mariadb://host:3306/racingmanager |
RACINGMANAGER_DB_USER |
— | Database user (for RACINGMANAGER_DB_URL) |
RACINGMANAGER_DB_PASSWORD |
— | Database password (for RACINGMANAGER_DB_URL) |
Racing Manager supports two databases from the same build; the active one is chosen at runtime by the JDBC URL:
RACINGMANAGER_DB_URL is unset.RACINGMANAGER_DB_URL (plus user/password) and the app connects to
MariaDB instead; the driver is inferred from the URL prefix. Schema migrations (Liquibase) run automatically on start
against whichever database is configured.To run MariaDB locally for development or testing, a Compose file is provided:
docker compose -f devops/docker-compose.yml up -d
Then start the backend pointed at it (dev credentials from that Compose file):
RACINGMANAGER_DB_URL=jdbc:mariadb://localhost:3306/racingmanager \
RACINGMANAGER_DB_USER=racingmanager \
RACINGMANAGER_DB_PASSWORD=racingmanager \
./gradlew :racingmanager-backend:build # then run ApplicationKt with the same env
Note: SQLite file backups (created automatically before each migration) apply to the SQLite backend only. For MariaDB, use your usual server backup (e.g.
mariadb-dump).
Hosted mode is multi-tenant: any number of organizations can register their own workspace and manage their own events and users, isolated from each other. Unlike local mode, hosted mode never generates its JWT signing key automatically — the deployment must supply its own key, managed through its own deployment pipeline and rotation policy. Either an RSA key pair (RS256) or a single shared secret (HS256) works; a secret is simpler to operate for a single-instance deployment, at the cost of every verifier needing the same secret (an RSA key can be retired to verification-only during rotation — a secret can’t).
Generate a signing key. Pick one:
SubjectPublicKeyInfo for the public key), base64-encoded:
openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:2048 -outform DER -out private.der
openssl pkey -in private.der -inform DER -pubout -outform DER -out public.der
PRIVATE_KEY_B64=$(base64 < private.der | tr -d '\n')
PUBLIC_KEY_B64=$(base64 < public.der | tr -d '\n')
JWT_SECRET=$(openssl rand -base64 48)
application-hosted.conf, kept out of version control) that supplies the key —
see the commented example in
racingmanager-backend/src/main/resources/application.conf. Passing
-config= replaces the bundled config rather than merging with it, so
include it explicitly:
include classpath("application.conf")
# RSA:
racingmanager.jwt.keys = [
{ kid = "2026-01", publicKey = "${PUBLIC_KEY_B64}", privateKey = "${PRIVATE_KEY_B64}", active = true }
]
# or a shared secret:
racingmanager.jwt.keys = [
{ kid = "2026-01", algorithm = "HS256", secret = "${JWT_SECRET}", active = true }
]
RACINGMANAGER_MODE=hosted RACINGMANAGER_PROFILE=prod \
./gradlew :racingmanager-backend:build
Then run ApplicationKt with the same environment variables set, and pass the extra file as a program argument so
Ktor merges it on top of the bundled application.conf:
-config=application-hosted.conf
(In IntelliJ, add this under “Program arguments” on the ApplicationKt
run configuration.)
http://localhost:4200/register and register a new organization — this creates the tenant and its first
administrator account and signs you straight in. Further users of that organization can then log in under its
workspace slug from /login.In local mode, racingmanager.jwt.keys is not read at all — the signing key is generated and persisted
automatically on first run. Registration works there too, but only until the instance has its first user: a fresh
offline install carries no data, so both /setup and /register are reachable from the login screen, and both close
once an account exists (409 ALREADY_SETUP). Further users are then created by that administrator under
Tenant settings. See Getting started — local setup.
For a hosted deployment, run the self-contained fat JAR under systemd and supply all configuration — including
database credentials and signing keys — through environment variables. Keep secrets in a root-only
EnvironmentFile; do not place a config file with credentials next to the JAR.
/opt/racingmanager/):
./gradlew :racingmanager-backend:fatJar
# -> racingmanager-backend/build/libs/*-fat.jar
CREATE DATABASE racingmanager CHARACTER SET utf8mb4;
CREATE USER 'racingmanager'@'%' IDENTIFIED BY 'CHANGE_ME';
GRANT ALL PRIVILEGES ON racingmanager.* TO 'racingmanager'@'%';
/etc/racingmanager/racingmanager.env:
PORT=8080
RACINGMANAGER_MODE=hosted
RACINGMANAGER_PROFILE=prod
RACINGMANAGER_DB_URL=jdbc:mariadb://localhost:3306/racingmanager
RACINGMANAGER_DB_USER=racingmanager
RACINGMANAGER_DB_PASSWORD=CHANGE_ME
sudo install -d -m 700 /etc/racingmanager
sudo chmod 600 /etc/racingmanager/racingmanager.env
The JWT signing key is required in hosted mode and is passed via a hosted config file (see the previous section);
reference it with a -config= program argument in the unit below, or inline the key material as additional
environment entries.
/etc/systemd/system/racingmanager.service:
[Unit]
Description=Racing Manager
After=network.target mariadb.service
[Service]
User=racingmanager
Group=racingmanager
EnvironmentFile=/etc/racingmanager/racingmanager.env
ExecStart=/usr/bin/java -jar /opt/racingmanager/racingmanager-backend-fat.jar -config=/etc/racingmanager/application-hosted.conf
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable --now racingmanager
sudo journalctl -u racingmanager -f
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# WebSocket support for live race/spectator updates:
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
For Apache it looks like this:
ProxyPreserveHost On
ProxyPass "/" "http://localhost:8085/"
ProxyPassReverse "/" "http://localhost:8085/"
RewriteEngine On
# Real backend requests pass through untouched:
# - anything with a file extension (.js/.css/.png/index.html …)
# - your API namespace (adjust /api to whatever the backend uses)
RewriteCond %{REQUEST_URI} !\.[a-zA-Z0-9]+$
RewriteCond %{REQUEST_URI} !^/api/
# Everything else is an Angular route → serve the SPA shell
RewriteRule ^ /index.html [PT]
The backend now applies these same three rules itself when it serves the bundled UI, so deep links like /setup or
/racemanager/<id>/results survive a reload even without a proxy in front. The rewrite above is therefore optional —
keep it if you prefer the proxy to answer those requests.
The app listens on 8080 by default. If that port is already taken by another application, set the PORT environment
variable to a free port — e.g. in the
EnvironmentFile from step 3:
PORT=8090
Then reload and restart, and point the reverse proxy at the new port (proxy_pass http://127.0.0.1:8090;):
sudo systemctl daemon-reload
sudo systemctl restart racingmanager
Backend (from repo root):
./gradlew :racingmanager-backend:test # run backend tests
./gradlew :racingmanager-backend:build # compile + test the backend
./gradlew buildAll # build every module
Webapp (from racingmanager-webapp/):
npm start # ng serve on :4200, proxied to :8080
npm test # Vitest
npm run build # production build
npm run lint