Backend: Match-Lobbys, Map-Veto, Echtzeit und CS2-Serveradapter

Express + Socket.IO + SQLite. Veto-Engine mit konfigurierbaren Map-Pools
und validierten Abläufen, rollenbasierte Berechtigungen, Server-Lebenszyklus
mit Demo-, Docker- und Static-Pool-Adapter (RCON), automatisches Herunterfahren.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
SPP UserandClaude Opus 5.5 committed 2026-10-25 16:50:22 +01:00
commit 104aa1a67b
27 files changed
+6355

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
import { loadConfig } from './config.js';
import { createApp } from './app.js';
const config = loadConfig();
const app = createApp(config);
const port = await app.start();
const label = app.adapter.simulated
? 'DEMO (simuliert – es werden keine echten CS2-Server gestartet)'
: app.adapter.name;
console.log(`CS2 Mapveto Backend läuft auf http://localhost:${port}`);
console.log(`Serveradapter: ${label}`);
for (const signal of ['SIGINT', 'SIGTERM']) {
process.on(signal, async () => {
console.log('Fahre herunter …');
await app.close();
process.exit(0);
});
}