feat: 切换邮箱认证并重构前后端启动与门禁
This commit is contained in:
+21
-10
@@ -1,16 +1,27 @@
|
||||
# meeyao_qianwen
|
||||
# eryao apps
|
||||
|
||||
A new Flutter project.
|
||||
Flutter client for `觅爻签问`.
|
||||
|
||||
## Getting Started
|
||||
## Debug startup with backend injection
|
||||
|
||||
This project is a starting point for a Flutter application.
|
||||
This app supports injecting backend URL at startup (same pattern as social-app):
|
||||
|
||||
A few resources to get you started if this is your first Flutter project:
|
||||
- Dart read path: `lib/core/config/env.dart`
|
||||
- Injection key: `BACKEND_URL`
|
||||
|
||||
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
|
||||
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
|
||||
### Direct command
|
||||
|
||||
For help getting started with Flutter development, view the
|
||||
[online documentation](https://docs.flutter.dev/), which offers tutorials,
|
||||
samples, guidance on mobile development, and a full API reference.
|
||||
```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`
|
||||
|
||||
Reference in New Issue
Block a user