18 lines
423 B
Markdown
18 lines
423 B
Markdown
# 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.
|