minor
This commit is contained in:
17
dashboard/README.md
Normal file
17
dashboard/README.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# Dashboard
|
||||
|
||||
Flutter frontend for the building materials catalog.
|
||||
|
||||
## Run
|
||||
|
||||
```bash
|
||||
flutter pub get
|
||||
flutter run -d chrome --dart-define=API_BASE_URL=http://localhost:8080/api/v1
|
||||
```
|
||||
|
||||
Dashboard reads `API_BASE_URL` in this order:
|
||||
1. `--dart-define=API_BASE_URL=...`
|
||||
2. `assets/env` (`API_BASE_URL=...`)
|
||||
3. default `http://localhost:8080/api/v1`
|
||||
|
||||
Container build writes `API_BASE_URL` into `assets/env` from Docker build arg.
|
||||
Reference in New Issue
Block a user