Commit graph

17 commits

Author SHA1 Message Date
92eb59d2ef Teamdatenbank ohne lowdb, Pfad unabhaengig vom Startverzeichnis
lowdb v7 ist ESM-only, das Projekt ist CommonJS. Der bisherige Umweg ueber
eine async IIFE mit await import() hatte zur Folge, dass db bei einem sehr
fruehen Request noch undefined sein konnte.

Fuer eine Liste von Teamnamen genuegt fs: read/write lesen und schreiben
db.json direkt und synchron, die Race-Condition entfaellt und lowdb kann als
Abhaengigkeit raus. Die exportierte API bleibt unveraendert, score.js und
routes/admin.js brauchen keine Anpassung.

Der Pfad zu db.json wird jetzt ueber __dirname aufgeloest statt relativ zum
Arbeitsverzeichnis, damit die Datei unabhaengig vom Startverzeichnis immer
an derselben Stelle liegt. Fehlt oder bricht die Datei, wird auf eine leere
Teamliste zurueckgefallen.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-19 20:39:12 +02:00
c4325ae8ac Merge branch 'master' of https://git.jappel.io/jappel/scoreboard-js
Konflikt in scoreboard/controllers/cli.js zugunsten der Remote-Version
aufgeloest: openBrowser()/killBrowser() bleiben erhalten, da routes/admin.js
sie verwendet. Der lokale Testcode wurde verworfen (er rief zudem das
child_process-Modul faelschlich als Funktion auf).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-19 20:32:29 +02:00
e25c8606d9 Added comments and readme 2026-04-10 22:16:51 +02:00
799dd9bd8c Last changes before game 2024-06-08 08:48:35 +02:00
a27c38eeb3 Added refernce mirrored to mirror team position when sitting behind the main monitor 2024-06-06 21:56:54 +02:00
c0ffac18e4 Added splashscreen 2024-06-06 21:51:18 +02:00
7244a4ceaa Added browser start and kill function 2024-06-02 22:31:11 +02:00
8f402058ad Added db with team selection, scoreboard enabled by default, Added Debugwindow, cleanup 2024-06-02 22:30:39 +02:00
1d632252bf Added test cli functionality 2024-05-31 21:05:22 +02:00
ad6ab2ecab Added sideswitch functionality, cleanup, comments 2024-05-28 23:00:32 +02:00
835248a9dc Added config team functionality, receive them from backend to update frontend, Added scoreswitch 2024-05-28 22:59:36 +02:00
93d06517e4 Added scoreboard functionality, seperate update admin frontend 2024-05-17 21:24:58 +02:00
35a0785bf3 Added comments, incDec function 2024-05-17 21:17:52 +02:00
b7cf1e4d9a Added websockts for admin interface 2024-05-06 22:20:19 +02:00
536c1272d8 Added important admin frontend functions with error handling, the corresponding api endpoints, and the timer logic 2024-05-06 22:19:20 +02:00
340ab1236e Cleanup 2024-05-06 21:51:13 +02:00
093c8c6e24 Main timer logic, socketio server and backend endpoints 2024-04-21 12:56:00 +02:00