You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(web-dashboard): update local setup instructions
- Clarify Flutter SDK installation process and reference official guide
- Enable web development support via command line instruction
- Recommend AppEnvironment.demo for UI development
- Update API Server local setup documentation link
Copy file name to clipboardExpand all lines: src/content/docs/web-dashboard/local-setup.mdx
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,14 @@ This guide will walk you through setting up and running the Flutter News App Web
10
10
<Steps>
11
11
1.**Prerequisites**
12
12
13
-
Before you begin, ensure you have the following software installed on your system:
13
+
Before you begin, you must have the Flutter SDK installed and configured for web development. To ensure you are using the most up-to-date and accurate installation instructions, we recommend following the official guide directly from the Flutter team.
14
14
15
-
-**Flutter SDK:** Version `3.8.0` or higher. Make sure you have configured it for web development by running `flutter config --enable-web`.
15
+
-**Flutter SDK:** Please follow the [Official Flutter Installation Guide](https://flutter.dev/docs/get-started/install) for your specific operating system.
16
+
17
+
Once installed, enable web development support by running:
18
+
```bash
19
+
flutter config --enable-web
20
+
```
16
21
17
22
2.**Clone the Repository**
18
23
@@ -38,7 +43,7 @@ This guide will walk you through setting up and running the Flutter News App Web
38
43
- Open the file `lib/main.dart`.
39
44
- Locate the `appEnvironment` constant.
40
45
- Set its value to one of the following:
41
-
-`AppEnvironment.demo`: Runs the dashboard with in-memory mock data. No backend API is required. This is great for testing UI components.
46
+
-`AppEnvironment.demo`: **(Recommended for UI development)**Runs the dashboard with in-memory mock data. No backend API is required, making it perfect for focusing on UI changes and component testing.
42
47
-`AppEnvironment.development`: Connects the dashboard to a locally running instance of the API server (typically at `http://localhost:8080`).
43
48
-`AppEnvironment.production`: Connects the dashboard to your live, deployed backend API.
44
49
@@ -50,7 +55,7 @@ This guide will walk you through setting up and running the Flutter News App Web
50
55
```
51
56
52
57
<Aside>
53
-
For the `development` environment, you must have the [API Server running locally](/docs/getting-started/local-setup-api) first.
58
+
For the `development` environment, you must have the [API Server running locally](/docs/api-server/local-setup/) first.
0 commit comments