- code import fix
This commit is contained in:
38
desktop-app/README.md
Normal file
38
desktop-app/README.md
Normal file
@@ -0,0 +1,38 @@
|
||||
# TT-Tagebuch Desktop
|
||||
|
||||
Eigenständige Flutter-/Dart-Desktop-App für Windows, macOS und Linux. Sie ist
|
||||
keine WebView: Die Oberfläche wird vollständig mit Flutter gebaut und nutzt
|
||||
die bestehende TT-Tagebuch-API.
|
||||
|
||||
## Voraussetzungen
|
||||
|
||||
- Flutter stable
|
||||
- Linux: CMake, Ninja, GTK-3-Entwicklungsbibliotheken und ein C++-Compiler
|
||||
- Windows: Visual Studio mit dem Workload „Desktop development with C++“
|
||||
- macOS: Xcode
|
||||
|
||||
## Starten
|
||||
|
||||
```bash
|
||||
flutter pub get
|
||||
flutter run -d linux
|
||||
```
|
||||
|
||||
Für die lokale API wird standardmäßig `http://localhost:3005/api` verwendet.
|
||||
Eine abweichende Umgebung wird ausschließlich beim Build gesetzt:
|
||||
|
||||
```bash
|
||||
flutter run -d linux \
|
||||
--dart-define=APP_ENV=staging \
|
||||
--dart-define=API_BASE_URL=https://staging.tt-tagebuch.de/api
|
||||
```
|
||||
|
||||
## Qualität
|
||||
|
||||
```bash
|
||||
dart format --output=none --set-exit-if-changed .
|
||||
flutter analyze
|
||||
flutter test
|
||||
```
|
||||
|
||||
Zugangsdaten und JWTs gehören nie in Logs, Quellcode oder Build-Konfiguration.
|
||||
Reference in New Issue
Block a user