MYP Control Center Integration: install.sh integriert, legacy Skripte markiert, README aktualisiert
This commit is contained in:
132
docs/README.md
132
docs/README.md
@@ -4,50 +4,41 @@ Mercedes-Benz Werk 040 Berlin - 3D-Drucker Reservierungsplattform
|
||||
|
||||
## 🚀 Schnellstart
|
||||
|
||||
### MYP Control Center (Empfohlen)
|
||||
|
||||
Das zentrale Installationssystem für alle Komponenten:
|
||||
|
||||
```bash
|
||||
# Repository klonen
|
||||
git clone <repository-url>
|
||||
cd Projektarbeit-MYP
|
||||
|
||||
# MYP Control Center starten
|
||||
./myp_installer.sh
|
||||
```
|
||||
|
||||
Das MYP Control Center bietet:
|
||||
- **Schnellstart-Installationen** (Vollständig, Backend-Only, Entwicklung)
|
||||
- **Produktions-Installer** (Integration der v3.2 install.sh Funktionalität)
|
||||
- **Granulare Installation** (Einzelne Komponenten)
|
||||
- **System & Wartung** (Tests, Status, Informationen)
|
||||
|
||||
### Direkter Produktions-Installer
|
||||
|
||||
Für schnelle Produktions-Deployments direkt im MYP Control Center → Option 4:
|
||||
|
||||
```bash
|
||||
./myp_installer.sh
|
||||
# → Wähle Option 4: Produktions-Installer
|
||||
# → Backend installieren (Raspberry Pi)
|
||||
# → Frontend installieren (Docker)
|
||||
```
|
||||
|
||||
### Voraussetzungen
|
||||
|
||||
- **Backend (Raspberry Pi)**: Python 3.11, systemd
|
||||
- **Frontend (m040tbaraspi001)**: Docker, Docker Compose
|
||||
|
||||
### Installation
|
||||
|
||||
#### Backend Installation (Raspberry Pi)
|
||||
|
||||
```bash
|
||||
# Repository klonen
|
||||
git clone <repository-url>
|
||||
cd Projektarbeit-MYP
|
||||
|
||||
# Backend installieren
|
||||
./install.sh backend
|
||||
```
|
||||
|
||||
#### Frontend Installation (m040tbaraspi001)
|
||||
|
||||
```bash
|
||||
# Repository klonen
|
||||
git clone <repository-url>
|
||||
cd Projektarbeit-MYP
|
||||
|
||||
# Frontend installieren
|
||||
./install.sh frontend
|
||||
```
|
||||
|
||||
### Services starten
|
||||
|
||||
#### Backend
|
||||
```bash
|
||||
sudo systemctl start myp.service
|
||||
sudo systemctl status myp.service
|
||||
```
|
||||
|
||||
#### Frontend
|
||||
```bash
|
||||
cd frontend
|
||||
docker-compose up -d
|
||||
docker-compose logs -f
|
||||
```
|
||||
|
||||
## 🌐 Zugriff
|
||||
|
||||
- **Frontend**: https://m040tbaraspi001.de040.corpintra.net
|
||||
@@ -80,13 +71,21 @@ curl -k https://m040tbaraspi001.de040.corpintra.net/health
|
||||
|
||||
## 🛠️ Entwicklung
|
||||
|
||||
### Backend Debug-Modus
|
||||
### MYP Control Center (Entwicklungs-Setup)
|
||||
```bash
|
||||
./myp_installer.sh
|
||||
# → Option 3: Entwicklungs-Setup
|
||||
```
|
||||
|
||||
### Manuelle Installation
|
||||
|
||||
#### Backend Debug-Modus
|
||||
```bash
|
||||
cd backend/app
|
||||
python3.11 app.py --debug
|
||||
```
|
||||
|
||||
### Frontend Development
|
||||
#### Frontend Development
|
||||
```bash
|
||||
cd frontend
|
||||
npm run dev
|
||||
@@ -96,26 +95,39 @@ npm run dev
|
||||
|
||||
```
|
||||
Projektarbeit-MYP/
|
||||
├── myp_installer.sh # 🎯 HAUPT-INSTALLER (Control Center)
|
||||
├── backend/
|
||||
│ ├── app/
|
||||
│ │ ├── certs/ # TLS-Zertifikate
|
||||
│ │ ├── database/ # SQLite-Datenbank
|
||||
│ │ ├── logs/ # Anwendungslogs
|
||||
│ │ └── app.py # Hauptanwendung
|
||||
│ ├── myp.service # systemd Service
|
||||
│ └── requirements.txt # Python-Abhängigkeiten
|
||||
│ │ ├── certs/ # TLS-Zertifikate
|
||||
│ │ ├── database/ # SQLite-Datenbank
|
||||
│ │ ├── logs/ # Anwendungslogs
|
||||
│ │ └── app.py # Hauptanwendung
|
||||
│ ├── myp.service # systemd Service
|
||||
│ ├── requirements.txt # Python-Abhängigkeiten
|
||||
│ └── legacy_setup_raspberry_pi.sh # Legacy Skript
|
||||
├── frontend/
|
||||
│ ├── certs/ # TLS-Zertifikate
|
||||
│ ├── certs/ # TLS-Zertifikate
|
||||
│ ├── docker/
|
||||
│ │ └── caddy/
|
||||
│ │ └── Caddyfile # Reverse Proxy Konfiguration
|
||||
│ ├── src/ # Next.js Anwendung
|
||||
│ │ ├── caddy/
|
||||
│ │ │ └── Caddyfile # Reverse Proxy Konfiguration
|
||||
│ │ └── legacy_deploy.sh # Legacy Skript
|
||||
│ ├── src/ # Next.js Anwendung
|
||||
│ └── docker-compose.yml
|
||||
├── docs/ # Dokumentation
|
||||
├── scripts/ # Hilfsskripte
|
||||
└── install.sh # Zentraler Installer
|
||||
├── scripts/
|
||||
│ └── legacy_generate_certs.sh # Legacy Skript
|
||||
├── archiv/
|
||||
│ └── myp_installer_legacy.sh # Archivierte Version
|
||||
└── docs/ # Dokumentation
|
||||
```
|
||||
|
||||
### Script-Status
|
||||
|
||||
| Skript | Status | Verwendung |
|
||||
|--------|--------|------------|
|
||||
| `myp_installer.sh` | ✅ **AKTIV** | Haupt-Control-Center |
|
||||
| `*legacy_*.sh` | 📦 Legacy | Historische Versionen |
|
||||
| `archiv/myp_installer_legacy.sh` | 📦 Archiv | Alte Version 4.0 |
|
||||
|
||||
## 🔒 Sicherheit
|
||||
|
||||
- HTTPS-only (Port 443)
|
||||
@@ -145,6 +157,13 @@ docker-compose logs caddy
|
||||
|
||||
## 🆘 Troubleshooting
|
||||
|
||||
### MYP Control Center verwenden
|
||||
```bash
|
||||
./myp_installer.sh
|
||||
# → Option 6: Systemvoraussetzungen prüfen
|
||||
# → Option 7: Anwendung starten
|
||||
```
|
||||
|
||||
### Backend startet nicht
|
||||
```bash
|
||||
# Service Status prüfen
|
||||
@@ -182,10 +201,11 @@ netstat -tlnp | grep :443
|
||||
## 📋 Version
|
||||
|
||||
- **Version**: 3.2-final
|
||||
- **Control Center**: v4.0 mit v3.2 Integration
|
||||
- **Build**: Production
|
||||
- **Datum**: $(date)
|
||||
- **Installer**: MYP Control Center
|
||||
|
||||
## 👥 Support
|
||||
|
||||
Bei Problemen wenden Sie sich an das IT-Team des Mercedes-Benz Werk 040 Berlin.
|
||||
Bei Problemen verwenden Sie das MYP Control Center oder wenden Sie sich an das IT-Team des Mercedes-Benz Werk 040 Berlin.
|
||||
|
||||
|
Reference in New Issue
Block a user