Commit Graph

7 Commits

Author SHA1 Message Date
Benjamin Oezcan
3dc770e34a fix(server): tokens of deleted accounts are refused; a failing message or fight can no longer crash the server
After a database reset an old (still signed) token made economy.load insert a save for a missing user;
the FOREIGN KEY error escaped the WebSocket handler and took the process down in a restart loop.
2026-11-19 10:02:51 +01:00
Benjamin Oezcan
0ffa221e82 feat(server): DELETE /api/me deletes your account; smoke test cleans up after itself 2026-11-19 09:59:19 +01:00
Benjamin Oezcan
b587d12f37 refactor!: remove firebase leftovers, admin page on the server (P1-8)
BREAKING CHANGE: admin/cleanup.js, admin/setcoins.js and docs/firebase are gone; the admin page now runs at /admin/.
2026-11-19 02:11:13 +01:00
Benjamin Oezcan
0202a08b8d feat(server): achievements pay out server-side, snapshots carry opponent connection state 2026-11-19 02:09:12 +01:00
Benjamin Oezcan
dca1032ac4 feat(server)!: websocket lobby, server-run matches, server economy, new schema (P1-2, P1-4, P2-1, P2-1b, P2-5)
Replaces the Firebase-style /db facade (rtdb, rules, nodes tree) with explicit REST endpoints and a
WebSocket hub. Login by name or optional e-mail, seed accounts via npm run db:reset.

BREAKING CHANGE: old clients (lobby/netfight over /db) no longer work against this server; database is new.
2026-11-19 01:52:30 +01:00
Benjamin Oezcan
9012bee29f feat(server): server-side match room runs the fight (P1-3) 2026-11-19 01:46:17 +01:00
Benjamin Oezcan
fa68ef620d feat(server): healthz, testable app, local dev script (P0-3) 2026-11-19 01:40:31 +01:00