Umfassende Build- und Setup-Skripte mit erweiterten Fehlerbehandlung, Debugging und automatischer Problemlösung.
build.bat- Batch-Script für Windows (cmd.exe)build.ps1- PowerShell-Script für Windows (PowerShell 5.0+)
build.sh- Bash-Script für macOS und Linux
build.bat.\build.ps1chmod +x build.sh
./build.shAlle Scripts unterstützen die gleichen Optionen:
| Option | Kurz | Beschreibung |
|---|---|---|
--skip-checks |
-s |
Überspringe Voraussetzungsprüfung (schneller) |
--debug |
-d |
Aktiviere Debug-Modus (verbose Output) |
--background |
-b |
Starte Komponenten im Hintergrund |
--clean |
-c |
Saubere Installation (lösche node_modules) |
--help |
-h |
Zeige Hilfe an |
# Windows (CMD)
build.bat --skip-checks
# Windows (PowerShell)
.\build.ps1 -SkipChecks
# macOS/Linux
./build.sh --skip-checks# Windows (CMD)
build.bat --clean --debug
# Windows (PowerShell)
.\build.ps1 -CleanInstall -Debug
# macOS/Linux
./build.sh --clean --debug# Windows (CMD)
build.bat
# macOS/Linux
./build.sh- ✓ Node.js Verfügbarkeit prüfen
- ✓ Yarn/npm Verfügbarkeit prüfen
- ✓ Python Verfügbarkeit prüfen
- ✓ Git (optional) prüfen
- ✓ Port-Konflikte erkennen
- ✓ Automatische Alternativen bei Fehlern
- ✓ Detaillierte Error-Messages
- ✓ Exit-Codes für Scripting
- ✓ Graceful Degradation
- ✓ Farbcodierte Output
- ✓ Timestamps bei allen Logs
- ✓ Debug-Modus mit
-d/--debug - ✓ Schritt-für-Schritt Fortschritt
- ✓ Windows-spezifische Requirements
- ✓ macOS-spezifische Requirements
- ✓ Linux-spezifische Requirements
- ✓ Automatische OS-Erkennung
- ✓ Prüfung auf existierende Installation
- ✓ Yarn-Fallback zu npm
- ✓ Python3/Python Fallback
- ✓ Saubere Installation mit
--clean
Frontend-Abhängigkeiten (via yarn/npm)
├─ React & TypeScript
├─ Vite Build-Tool
├─ Monaco Editor
├─ Electron
└─ Weitere UI-Komponenten
Backend-Abhängigkeiten (via pip)
├─ FastAPI
├─ Python Dependencies (OS-spezifisch)
├─ spaCy NLP Models
└─ Weitere Backend-Tools
Konfiguration
├─ .env File (falls nicht vorhanden)
└─ Environment Variables
1. Parse Arguments
2. Check Prerequisites
3. Check Ports
4. Setup Frontend (yarn/npm install)
5. Setup Backend (pip install)
6. Setup Environment (.env)
7. Summary & Troubleshooting
8. Optional: Starte Anwendung
# Installiere Node.js von https://nodejs.org/
# Dann versuche erneut:
build.bat# Windows: Finde Prozess und beende ihn
netstat -an | findstr :23816
taskkill /PID <PID> /F
# macOS/Linux:
lsof -i :23816
kill -9 <PID># Erstelle virtuelle Umgebung
python -m venv venv
# Aktiviere sie
# Windows:
venv\Scripts\activate
# macOS/Linux:
source venv/bin/activate
# Versuche Installation erneut
build.bat --cleanDas Script fällt automatisch zu npm zurück. Alternativ installiere Yarn:
npm install -g yarnNach erfolgreicher Installation hast du mehrere Optionen:
yarn devStartet Frontend, Backend und optional Electron zusammen.
node start-pointer.js# Terminal 1: Backend
cd backend
python run.py
# Terminal 2: Frontend
yarn start
# Terminal 3: Electron (optional)
yarn electron:devDas Script erstellt eine .env Datei mit Standard-Konfiguration:
# Backend API URL
VITE_API_URL=http://localhost:23816
# Development Server Port
VITE_DEV_SERVER_PORT=3000
# Debug Mode
DEBUG=false
# Optional: OpenAI API Key
# OPENAI_API_KEY=your_key_herePasse diese nach Bedarf an.
--skip-checksfür schnellere Startups wenn alles okay ist- Verwende
--cleannur bei ernsthaften Problemen - Aktiviere
--debugzur Fehlersuche - Nutze separate Terminals für jede Komponente beim Debugging
Diese Scripts sind Teil des Pointer Projekts und unter MIT License verfügbar.
Bei Problemen:
- Versuche
./build.sh --clean --debug - Prüfe die Troubleshooting-Sektion
- Öffne einen Issue im Repository
Viel Spaß mit Pointer! 🚀