Files
Cs2-Mapveto/server/src/index.js
T
SPP UserandClaude Opus 5.5 104aa1a67b 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>
2026-10-25 16:50:22 +01:00

21 lines
588 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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);
});
}