1
Schnellstart
MrEgosar edited this page 2026-10-26 00:55:49 +01:00

Schnellstart

Als Container (empfohlen für den Betrieb)

Ein Container enthält Webseite, Backend und Datenbank. Er startet die CS2-Server-Container auf demselben Docker-Host. Details: Docker-Betrieb.

docker -H ssh://USER@DOCKER-HOST-IP build -t cs2-mapveto:latest .

Zum Entwickeln

npm install
cp .env.example .env      # optional, Standardwerte funktionieren für die Demo
npm run dev               # Backend auf :3000, Frontend auf :5173

Dann http://localhost:5173 öffnen.

Produktion (ein Prozess)

Das Backend liefert das gebaute Frontend aus.

npm install
npm run build
PUBLIC_URL=https://veto.example.de npm start

Lauscht auf PORT (Standard 3000).

Tests

npm test