# Quick Start - Offline-First Architecture ## TL;DR - Run These 3 Commands ```bash cd C:\DEV\COPILOT\geutebruck_app # 1. Install dependencies flutter pub get # 2. Generate Hive adapters flutter packages pub run build_runner build --delete-conflicting-outputs # 3. Run with hot reload .\dev-run.bat ``` Then: 1. Open browser to `http://localhost:8081` 2. Login 3. Go to Servers 4. Click download button (⬇️) to load initial data 5. Create/edit servers - they save instantly! 6. Click sync button (🔄) to push changes to server ## What Changed? ✅ **All server operations are now INSTANT** (no waiting for API) ✅ **Works offline** (create/edit servers without internet) ✅ **Explicit sync** (changes pushed to server only when you click sync button) ✅ **Hot reload** (press `r` in terminal for instant code updates) ✅ **Windows desktop ready** (same code works on Windows) ## Sync Button Red badge shows unsaved changes: - **🔄** (no badge) = No changes to sync - **🔄 🔴3** (red badge) = 3 unsaved changes Click to sync all changes to GeViServer. ## Download Button **⬇️** button fetches latest data from server (preserves your local changes). ## Hot Reload While `dev-run.bat` is running: - Press **`r`** = Hot reload (instant update) - Press **`R`** = Hot restart (full restart) - Press **`q`** = Quit Save a `.dart` file and press `r` - changes appear instantly! ## Documentation - **IMPLEMENTATION_SUMMARY.md** - What was implemented - **OFFLINE_FIRST_SETUP.md** - Architecture details and troubleshooting Enjoy the speed! 🚀