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.
This commit is contained in:
@@ -10,12 +10,14 @@
|
||||
"scripts": {
|
||||
"start": "node app.js",
|
||||
"dev": "node --env-file=.env --watch app.js",
|
||||
"test": "node --test \"test/**/*.test.js\""
|
||||
"test": "node --test \"test/**/*.test.js\"",
|
||||
"db:reset": "node scripts/reset-db.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"express": "4.19.2",
|
||||
"better-sqlite3": "11.3.0",
|
||||
"bcryptjs": "2.4.3",
|
||||
"jsonwebtoken": "9.0.2"
|
||||
"better-sqlite3": "11.3.0",
|
||||
"express": "4.19.2",
|
||||
"jsonwebtoken": "9.0.2",
|
||||
"ws": "8.23.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user