Ein modernes, umfagreiches Dashboard zur Überwachung von Netzwerk-Standorten (Frankfurt und Wien) mit einer interaktiven Karte (Leaflet), Echtzeit-Statusanzeigen, Ping-Funktionen und Systeminformationen.
psutil (falls installiert) oder realistische Simulation als Fallback.pip install psutil für echte Hardwaredaten anstatt Simulationen.cd network-dashboard
pip install -r requirements.txt
python app.py
network-dashboard/
│
├── app.py # Haupteinstiegspunkt (Flask)
├── config.py # Konfigurationen (Standorte, Thresholds)
├── requirements.txt # Abhängigkeiten
│
├── api/ # Backend-Logik
│ ├── __init__.py
│ ├── routes.py # API Endpunkte (/status, /ping, /systeminfo)
│ └── services.py # Business Logik (Netzwerk-Tests, psutil)
│
├── static/ # Frontend Assets
│ ├── css/
│ │ ├── main.css # Design System, Variablen, Reset
│ │ ├── dashboard.css # Layout, Karten, Footer
│ │ ├── map.css # Leaflet, Marker Glow-Effekte
│ │ ├── components.css # Buttons, Modals, Toasts
│ │ └── animations.css # CSS Keyframes und Transitions
│ │
│ └── js/
│ ├── utils.js # Formatierungen
│ ├── api.js # Fetch-Wrapper
│ ├── notifications.js # Toast-Manager und Log
│ ├── map.js # Leaflet Integration
│ ├── dashboard.js # UI-Updates (DOM Manipulation)
│ └── app.js # App Controller & Events
│
└── templates/ # HTML Templates (Jinja2)
├── base.html # HTML Gerüst (Imports)
├── index.html # Haupt-Layout
└── components/
├── navbar.html # Navigation & Header
└── modals.html # Modal-Dialoge
api/services.py), Routing (api/routes.py) und Frontend-Komponenten aufgeteilt, um die Skalierbarkeit für ein umfangreiches Projekt zu gewährleisten.