Vollständig automatisierte Installation von TurnFix auf Windows-Systemen mit einem Klick.
- ✅ Node.js Version-Check: Prüft ob mindestens Node.js v18 installiert ist
- ✅ PostgreSQL Direct Download: Fallback wenn Chocolatey fehlschlägt
- ✅ Verbesserte Fehlerbehandlung: Detaillierte Fehlermeldungen und Troubleshooting
- ✅ ForceUpdate Flag: Ermöglicht Neuinstallation trotz bestehender Installation
- ✅ Unattended PostgreSQL Install: Automatischer Silent-Install ohne Benutzerinteraktion
- Rechtsklick auf
INSTALL.bat - "Als Administrator ausführen" wählen
- Fertig! ☕
# Als Administrator ausführen
Set-ExecutionPolicy Bypass -Scope Process
.\complete-setup.ps1# Als Administrator ausführen
.\install-prerequisites-improved.ps1- ✅ Betriebssystem-Kompatibilität (Windows 10/11)
- ✅ RAM (mind. 4GB, empfohlen 8GB)
- ✅ Speicherplatz (mind. 2GB frei)
- ✅ PowerShell Version
- ✅ Internet-Verbindung
- ✅ Administrator-Rechte
| Software | Version | Zweck |
|---|---|---|
| Chocolatey | Latest | Windows Paket-Manager |
| Node.js | v18+ LTS | JavaScript Runtime für Backend/Frontend |
| PostgreSQL | 15.x | Datenbank-Server |
| Git | Latest | Versionskontrolle |
| VS Code | Latest | Entwicklungsumgebung (optional) |
| pgAdmin 4 | Latest | PostgreSQL Management Tool |
- PostgreSQL Datenbank
turnfix - Benutzer
turnfix_usermit Passwort - Prisma Schema Deployment
- Beispieldaten (optional)
- TurnFix Source Code von GitHub
- Frontend: React + TypeScript + Vite
- Backend: Node.js + Express + Prisma
- Alle npm Dependencies
- Umgebungsvariablen (.env)
- Start-Skripte
.\check-requirements.ps1Was wird geprüft:
- Betriebssystem (Windows 10/11, 64-bit)
- RAM (mind. 4GB)
- Speicherplatz (mind. 2GB)
- PowerShell Version
- Internet-Verbindung
# Standard-Installation
.\install-prerequisites.ps1
# Oder verbesserte Version mit Version-Check
.\install-prerequisites-improved.ps1
# Mit benutzerdefinierten Parametern
.\install-prerequisites-improved.ps1 -PostgreSQLPassword "MeinPasswort" -ForceUpdateParameter:
-PostgreSQLPassword- PostgreSQL Admin-Passwort (Standard: "turnfix2024")-SkipNodeJS- Node.js Installation überspringen-SkipPostgreSQL- PostgreSQL Installation überspringen-SkipGit- Git Installation überspringen-SkipVSCode- VS Code Installation überspringen-ForceUpdate- Neuinstallation auch wenn bereits installiert
.\setup-database.ps1 -PostgreSQLPassword "turnfix2024" -DatabasePassword "turnfix_pass"Parameter:
-PostgreSQLPassword- PostgreSQL Admin-Passwort-DatabaseName- Datenbankname (Standard: "turnfix")-DatabaseUser- Datenbank-Benutzer (Standard: "turnfix_user")-DatabasePassword- Datenbank-Passwort (Standard: "turnfix_pass")-PostgreSQLHost- Host (Standard: "localhost")-PostgreSQLPort- Port (Standard: 5432)
.\setup-turnfix.ps1 -InstallPath "C:\TurnFix"Parameter:
-InstallPath- Installations-Verzeichnis (Standard: "C:\TurnFix")-GitRepository- Git Repository URL-Branch- Git Branch (Standard: "WebInterface")-SkipClone- Repository klonen überspringen-SkipDependencies- npm install überspringen-SkipDatabase- Prisma Setup überspringen
C:\TurnFix\start-turnfix.ps1Dies startet automatisch:
- Backend-Server (Port 3001)
- Frontend-Server (Port 5173)
- Öffnet Browser auf http://localhost:5173
# Terminal 1 - Backend
cd "C:\TurnFix\newWebBased\server"
npm run dev
# Terminal 2 - Frontend
cd "C:\TurnFix\newWebBased\client"
npm run devC:\TurnFix\start-with-jury.ps1Dies startet:
- Backend (Port 3001)
- Frontend (Port 5173)
- Jury Portal (Port 5174)
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy BypassLösung:
- Als Administrator ausführen
- Antivirus temporär deaktivieren
- Proxy-Einstellungen prüfen
Lösung 1: Manuelle Installation
- Download von https://www.postgresql.org/download/windows/
- Installer ausführen
- Passwort setzen:
turnfix2024 - Port 5432 wählen
Lösung 2: Verbessertes Skript nutzt automatischen Fallback
Lösung:
# Mit ForceUpdate Flag neu installieren
.\install-prerequisites-improved.ps1 -ForceUpdate# npm Cache löschen
npm cache clean --force
# Dependencies neu installieren
cd "C:\TurnFix\newWebBased\server"
npm install
cd "C:\TurnFix\newWebBased\client"
npm installPrüfen:
- PostgreSQL Service läuft:
Get-Service -Name "postgresql*"
- Verbindung testen:
psql -U postgres -h localhost
- .env Datei prüfen:
DATABASE_URL="postgresql://turnfix_user:turnfix_pass@localhost:5432/turnfix"
Ports prüfen:
# Port 3001 (Backend)
netstat -ano | findstr :3001
# Port 5173 (Frontend)
netstat -ano | findstr :5173
# Port 5174 (Jury Portal)
netstat -ano | findstr :5174Prozess beenden:
# PID aus netstat Ausgabe verwenden
Stop-Process -Id <PID> -Force- OS: Windows 10 (64-bit)
- RAM: 4 GB
- Storage: 2 GB frei
- Internet: Für Download der Komponenten
- OS: Windows 11 (64-bit)
- RAM: 8 GB oder mehr
- Storage: 10 GB frei
- CPU: Multi-Core Prozessor
- Internet: Breitband
Setup erstellt automatisch Log-Dateien:
setup\windows\setup-log-YYYYMMDD-HHMMSS.txt
Diese enthalten:
- Alle ausgeführten Befehle
- Erfolgs-/Fehlermeldungen
- Zeitstempel
- Installierte Versionen
.\install-prerequisites-improved.ps1 -ForceUpdatecd "C:\TurnFix"
git pull origin WebInterface
cd newWebBased\server
npm install
cd ..\client
npm install
# Datenbank migrieren
cd ..\server
npx prisma migrate deploy.\uninstall-turnfix.ps1Oder Batch-Datei verwenden:
UNINSTALL.bat
Dies entfernt:
- TurnFix Applikation
- Datenbank (optional)
- Optional: Prerequisites (Node.js, PostgreSQL, etc.)
Bei Problemen:
- Log-Datei prüfen:
setup-log-*.txt - System-Check ausführen:
.\check-requirements.ps1 - GitHub Issues: https://github.com/Igel18/turnfix/issues
- Dokumentation: README.md im Hauptverzeichnis
setup-overview.md- Technische Übersicht../GETTING_STARTED.md- Erste Schritte mit TurnFix../README.md- Haupt-DokumentationJURY_PORTAL_COMPARISON.md- Jury Portal Information
Für Entwickler:
# Setup ohne Production-Optimierungen
.\complete-setup.ps1 -SkipApplication
# Dann manuell klonen und konfigurieren
cd C:\TurnFix
git clone https://github.com/Igel18/turnfix.git .
git checkout WebInterface
# VS Code öffnen
code .Nach der Installation sollte folgendes funktionieren:
-
node --versionzeigt v18 oder höher -
npm --versionzeigt eine Version -
git --versionzeigt eine Version - PostgreSQL Service läuft (services.msc)
- pgAdmin 4 ist installiert
- TurnFix Verzeichnis existiert (C:\TurnFix)
- Backend startet ohne Fehler (
npm run dev) - Frontend startet ohne Fehler (
npm run dev) - http://localhost:5173 öffnet die Anwendung
- http://localhost:3001/api/health zeigt "OK"
- Datenbankverbindung funktioniert
- PM2 ist installiert (
npm list -g pm2oder in server/node_modules) - Server baut erfolgreich (
npm run build) - PM2 startet Server (
npm run pm2:start:prod) - PM2 Status zeigt "online" (
npm run pm2:status) - Logs zeigen keine Fehler (
npm run pm2:logs) - Server startet nach Crash automatisch neu (Test mit
npm run pm2:restart) - Error Boundary fängt Frontend-Fehler ab
- Database Health Check läuft (Logs prüfen)
PM2 Test:
cd C:\TurnFix\newWebBased\server
npm run build
npm run pm2:start:prod
npm run pm2:status
# Sollte "online" zeigen ✅WICHTIG:
- Standard-Passwörter ändern nach Installation!
- PostgreSQL Firewall-Regeln prüfen
- .env Dateien nicht committen
- Backup der Datenbank regelmäßig erstellen
Passwörter ändern:
-- In pgAdmin oder psql
ALTER USER turnfix_user WITH PASSWORD 'NeuesGeheimesPasswort';Dann .env Datei aktualisieren:
DATABASE_URL="postgresql://turnfix_user:NeuesGeheimesPasswort@localhost:5432/turnfix"