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
Copy file name to clipboardExpand all lines: Dart/quickstarts/https-increment-number/README.md
+5-13Lines changed: 5 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,7 @@ It features two endpoints:
5
5
-`incrementLocal`: Simple POST request that takes a local count and returns it incremented by 1.
6
6
-`incrementSynced`: GET and POST endpoints that sync a counter variable to Firestore, returning the newly updated count.
7
7
8
-
## Prerequisites
9
8
10
-
1. Add your Firebase project to this Quickstart:
11
-
```bash
12
-
firebase use --add
13
-
```
14
-
2. Enable Firestore in the Firebase Console and configure the emulator for local testing.
15
9
16
10
## Local Testing
17
11
@@ -20,19 +14,17 @@ First, fetch dependencies:
20
14
dart pub get
21
15
```
22
16
23
-
Then, you can use the Firebase CLI to test the function:
17
+
Then, you can use the Firebase CLI to test the function locally. To ensure both endpoints work properly, make sure to start both the functions and firestore emulators:
0 commit comments