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.
24 lines
590 B
JSON
24 lines
590 B
JSON
{
|
|
"name": "robotclash-server",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"description": "Robot Clash backend - auth, saves, ranks, lobby, live PvP, server-authoritative economy.",
|
|
"main": "app.js",
|
|
"engines": {
|
|
"node": ">=20.6"
|
|
},
|
|
"scripts": {
|
|
"start": "node app.js",
|
|
"dev": "node --env-file=.env --watch app.js",
|
|
"test": "node --test \"test/**/*.test.js\"",
|
|
"db:reset": "node scripts/reset-db.js"
|
|
},
|
|
"dependencies": {
|
|
"bcryptjs": "2.4.3",
|
|
"better-sqlite3": "11.3.0",
|
|
"express": "4.19.2",
|
|
"jsonwebtoken": "9.0.2",
|
|
"ws": "8.23.0"
|
|
}
|
|
}
|