2026-04-02 18:39:35 +08:00
|
|
|
# eryao apps
|
2026-04-02 16:36:35 +08:00
|
|
|
|
2026-04-02 18:39:35 +08:00
|
|
|
Flutter client for `觅爻签问`.
|
2026-04-02 16:36:35 +08:00
|
|
|
|
2026-04-02 18:39:35 +08:00
|
|
|
## Debug startup with backend injection
|
2026-04-02 16:36:35 +08:00
|
|
|
|
2026-04-02 18:39:35 +08:00
|
|
|
This app supports injecting backend URL at startup (same pattern as social-app):
|
2026-04-02 16:36:35 +08:00
|
|
|
|
2026-04-02 18:39:35 +08:00
|
|
|
- Dart read path: `lib/core/config/env.dart`
|
|
|
|
|
- Injection key: `BACKEND_URL`
|
2026-04-02 16:36:35 +08:00
|
|
|
|
2026-04-02 18:39:35 +08:00
|
|
|
### Direct command
|
2026-04-02 16:36:35 +08:00
|
|
|
|
2026-04-02 18:39:35 +08:00
|
|
|
```bash
|
|
|
|
|
flutter run --dart-define=BACKEND_URL=http://192.168.1.100:5775
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Script command
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
./tool/run-dev.sh --backend-url http://192.168.1.100:5775
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
If `BACKEND_URL` is not provided, fallback is:
|
|
|
|
|
|
|
|
|
|
- Android emulator: `http://10.0.2.2:5775`
|
|
|
|
|
- Others: `http://localhost:5775`
|