chore: automatic commit 2025-04-30 12:48
This commit is contained in:
58
windows_setup.bat
Normal file
58
windows_setup.bat
Normal file
@@ -0,0 +1,58 @@
|
||||
@echo off
|
||||
echo Mindmap Projekt - Windows Setup
|
||||
echo ==============================
|
||||
echo.
|
||||
|
||||
REM Prüfen, ob Python installiert ist
|
||||
python --version >nul 2>&1
|
||||
if %errorlevel% neq 0 (
|
||||
echo Python ist nicht installiert oder nicht im PATH.
|
||||
echo Bitte installiere Python 3.11 von https://www.python.org/downloads/
|
||||
echo und stelle sicher, dass "Add Python to PATH" während der Installation aktiviert ist.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo Erstelle virtuelle Umgebung...
|
||||
python -m venv venv
|
||||
if %errorlevel% neq 0 (
|
||||
echo Fehler beim Erstellen der virtuellen Umgebung.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo Aktiviere virtuelle Umgebung...
|
||||
call venv\Scripts\activate.bat
|
||||
if %errorlevel% neq 0 (
|
||||
echo Fehler beim Aktivieren der virtuellen Umgebung.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo Aktualisiere pip...
|
||||
python -m pip install --upgrade pip
|
||||
if %errorlevel% neq 0 (
|
||||
echo Warnung: Pip konnte nicht aktualisiert werden. Fahre trotzdem fort.
|
||||
)
|
||||
|
||||
echo Installiere Abhängigkeiten...
|
||||
pip install -r requirements.txt
|
||||
if %errorlevel% neq 0 (
|
||||
echo Fehler beim Installieren der Abhängigkeiten.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo.
|
||||
echo Setup abgeschlossen!
|
||||
echo.
|
||||
echo Zum Starten des Servers:
|
||||
echo 1. Führe "venv\Scripts\activate.bat" aus
|
||||
echo 2. Führe "python TOOLS.py db:rebuild" aus (Nur beim ersten Mal oder zum Zurücksetzen der Datenbank)
|
||||
echo 3. Führe "python TOOLS.py user:admin" aus (Erstellt einen Admin-Benutzer: admin/admin)
|
||||
echo 4. Führe "python TOOLS.py server:run" aus
|
||||
echo.
|
||||
echo Die Anwendung ist dann unter http://localhost:5000 erreichbar.
|
||||
echo.
|
||||
|
||||
pause
|
||||
Reference in New Issue
Block a user