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: authenticated-json-api/README.md
+11-2Lines changed: 11 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,11 +19,20 @@ detected by the [Cloud Natural Language API](https://cloud.google.com/natural-la
19
19
1. You must have the Firebase CLI installed. If you don't have it install it with `npm install -g firebase-tools` and then configure it with `firebase login`.
20
20
1. Configure the CLI locally by using `firebase use --add` and select your project in the list.
21
21
1. Install dependencies locally by running: `cd functions; npm install; cd -`
22
-
1. Enable the Google Cloud Natural Language API: https://console.cloud.google.com/apis/api/language.googleapis.com/overview?project=_
22
+
1.[Enable the Google Cloud Natural Language API](https://console.cloud.google.com/apis/api/language.googleapis.com/overview?project=_)
23
23
24
24
## Deploy and test
25
25
26
-
This sample comes with a web-based UI for testing the function. To test it out:
26
+
This sample comes with a web-based UI for testing the function.
27
+
To test locally do:
28
+
29
+
1. Start serving your project locally using `firebase serve --only hosting,functions`
30
+
1. Open the app in a browser at `https://localhost:5000`.
31
+
1. Sign in to the web app in the browser using Google Sign-In
32
+
1. Create messages and explore them using the List and Detail sections.
33
+
1. Sign out. You should no longer be able to access the API.
34
+
35
+
To deploy and test on prod do:
27
36
28
37
1. Deploy your project using `firebase deploy`
29
38
1. Open the app using `firebase open hosting:site`, this will open a browser.
Copy file name to clipboardExpand all lines: authorized-https-endpoint/README.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,15 @@ This sample comes with a simple web-based UI which code is in [public](public) d
23
23
24
24
## Deploy and test
25
25
26
-
This sample comes with a web-based UI for testing the function. To test it out:
26
+
This sample comes with a web-based UI for testing the function.
27
+
To test locally do:
28
+
29
+
1. Start serving your project locally using `firebase serve --only hosting,functions`
30
+
1. Open the app in a browser at `https://localhost:5000`.
31
+
1. Sign in the web app in the browser using Google Sign-In and two authenticated requests will be performed from the client and the result will be displayed on the page, normally "Hello <userdisplayname>".
32
+
33
+
34
+
To deploy and test on prod do:
27
35
28
36
1. Deploy your project using `firebase deploy`
29
37
1. Open the app using `firebase open hosting:site`, this will open a browser.
0 commit comments