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: authorized-https-endpoint/README.md
-1
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,6 @@ This sample comes with a simple web-based UI which code is in [public](public) d
16
16
1. Create a Firebase Project using the [Firebase Console](https://console.firebase.google.com).
17
17
1. Enable the **Google** Provider in the **Auth** section.
18
18
1. Clone or download this repo and open the `authenticated-https-endpoint` directory.
19
-
1. Paste the Web initialization snippet from: **Firebase Console > Overview > Add Firebase to your web app** in the `public/index.html` where the `TODO` is located.
20
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`.
21
20
1. Configure the CLI locally by using `firebase use --add` and select your project in the list.
22
21
1. Install dependencies locally by running: `cd functions; npm install; cd -`
Copy file name to clipboardExpand all lines: email-confirmation/README.md
+13-14
Original file line number
Diff line number
Diff line change
@@ -34,22 +34,21 @@ The function triggers on changes to `/users/$uid` and exits if there are no chan
34
34
35
35
## Setting up the sample
36
36
37
-
Set the `gmail.email` and `gmail.password` Google Cloud environment variables to match the email and password of the Gmail account used to send emails. For this use:
This sample comes with a web-based UI for testing the function. To set it up:
44
-
45
-
- Create a Firebase Project using the [Firebase Developer Console](https://console.firebase.google.com)
46
-
- Enable Google Provider in the [Auth section](https://console.firebase.google.com/project/_/authentication/providers)
47
-
- Import and configure Firebase in the `public/index.html` where the `TODO` is located
48
-
37
+
1. Create a Firebase Project using the [Firebase Console](https://console.firebase.google.com).
38
+
1. Enable the **Google** Provider in the **Auth** section.
39
+
1. Clone or download this repo and open the `email-confirmation` directory.
40
+
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`.
41
+
1. Configure the CLI locally by using `firebase use --add` and select your project in the list.
42
+
1. Install dependencies locally by running: `cd functions; npm install; cd -`
43
+
1. Set the `gmail.email` and `gmail.password` Google Cloud environment variables to match the email and password of the Gmail account used to send emails. For this use:
This sample comes with a web-based UI for testing the function. To test it out:
53
51
54
-
- Deploy your project using `firebase deploy`
55
-
- Open the app using `firebase open`, Sign in using Google Sign-In and subscribe/unsubscribe to the newsletter and you should receive email confirmations
52
+
1. Deploy your project using `firebase deploy`
53
+
1. Open the app using `firebase open hosting:site`, this will open a browser.
54
+
1. Sign in the web app in the browser using Google Sign-In and delete your account using the button on the web app. You should receive email confirmations for each actions.
Copy file name to clipboardExpand all lines: exif-images/README.md
+10-7
Original file line number
Diff line number
Diff line change
@@ -28,16 +28,19 @@ For example the metadata for the file at path `/1477402116302/mypic.jpg` will be
28
28
29
29
This sample comes with a Function and web-based UI for testing the function. To configure it:
30
30
31
-
- Create a Firebase project on the [Firebase Console](https://console.firebase.google.com)
32
-
- Enable Anonymous sign in the Auth section
33
-
- Import and configure Firebase in the `index.html` where the `TODO` is located
31
+
1. Create a Firebase Project using the [Firebase Console](https://console.firebase.google.com).
32
+
1. Enable the **Anonymous** sign-in in the **Auth** section.
33
+
1. Clone or download this repo and open the `exif-image` directory.
34
+
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`.
35
+
1. Configure the CLI locally by using `firebase use --add` and select your project in the list.
36
+
1. Install dependencies locally by running: `cd functions; npm install; cd -`
34
37
35
38
36
39
## Deploy and test
37
40
38
41
To test the sample:
39
42
40
-
- Deploy your project using `firebase deploy`
41
-
- Open the Deploy Web UI using `firebase open`, typically at the URL `https://<projectID>.firebaseapp.com`
42
-
- Upload an image using the Web UI.
43
-
- You should see the metadata displayed below after a bit.
43
+
1. Deploy your project using `firebase deploy`
44
+
1. Open the app using `firebase open hosting:site`, this will open a browser.
45
+
1. Upload an image using the Web UI.
46
+
1. You should see the metadata displayed below after a bit.
Copy file name to clipboardExpand all lines: fcm-notifications/README.md
+9-6
Original file line number
Diff line number
Diff line change
@@ -53,9 +53,12 @@ The function triggers every time the value of a follow flag changes at `/followe
53
53
54
54
This sample comes with a web-based UI for testing the function. To test it out:
55
55
56
-
- Create a Firebase Project using the [Firebase Developer Console](https://console.firebase.google.com)
57
-
- Enable **Google Provider** in the [Auth section](https://console.firebase.google.com/project/_/authentication/providers)
58
-
- Import and configure Firebase in `public/index.html` where the `TODO` is located
59
-
- Install the required dependencies by running `npm install` in the `functions` directory
60
-
- Deploy your project using `firebase deploy`
61
-
- Open the app and start following a user, this will send a notification to him.
56
+
1. Create a Firebase Project using the [Firebase Console](https://console.firebase.google.com).
57
+
1. Enable **Google Provider** in the [Auth section](https://console.firebase.google.com/project/_/authentication/providers)
58
+
1. Clone or download this repo and open the `fcm-notification` directory.
59
+
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`.
60
+
1. Configure the CLI locally by using `firebase use --add` and select your project in the list.
61
+
1. Install dependencies locally by running: `cd functions; npm install; cd -`
62
+
1. Deploy your project using `firebase deploy`
63
+
1. Open the app using `firebase open hosting:site`, this will open a browser.
64
+
1. Start following a user, this will send a notification to him.
Copy file name to clipboardExpand all lines: instagram-auth/README.md
+3-4
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,6 @@ This sample shows how to authenticate using Instagram Sign-In on Firebase. In th
8
8
Create and setup the Firebase project:
9
9
1. Create a Firebase project using the [Firebase Developer Console](https://console.firebase.google.com).
10
10
1. Enable Billing on your Firebase the project by switching to the **Blaze** plan, this is currently needed to be able to perform HTTP requests to external services from a Cloud Function.
11
-
1. Copy the Web initialisation snippet from **Firebase Console > Overview > Add Firebase to your web app** and paste it in `public/index.html` and `public/popup.html` in lieu of the placeholders (where the `TODO(DEVELOPER)` are located).
12
11
13
12
Create and provide a Service Account's credentials:
14
13
1. Create a Service Accounts file as described in the [Server SDK setup instructions](https://firebase.google.com/docs/server/setup#add_firebase_to_your_app).
@@ -19,9 +18,9 @@ Create and setup your Instagram app:
19
18
1. Once Your app is created make sure you specify your app's callback URL in the list of **Valid redirect URIs** of your Instagram app. You should whitelist `https://localhost:5000/popup.html` for local development and if you deploy on App Engine (See Deploy section below) you should whitelist the URL `https://<application-id>.firebaseapp.com/popup.html`.
20
19
1. Copy the **Client ID** and **Client Secret** of your Instagram app and use them to set the `instagram.client_id` and `instagram.client_secret` Google Cloud environment variables. For this use:
Copy file name to clipboardExpand all lines: linkedin-auth/README.md
+3-4
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,6 @@ This sample shows how to authenticate using LinkedIn Sign-In on Firebase. In thi
8
8
Create and setup the Firebase project:
9
9
1. Create a Firebase project using the [Firebase Developer Console](https://console.firebase.google.com).
10
10
1. Enable Billing on your Firebase the project by switching to the **Blaze** plan, this is currently needed to be able to perform HTTP requests to external services from a Cloud Function.
11
-
1. Copy the Web initialisation snippet from **Firebase Console > Overview > Add Firebase to your web app** and paste it in `public/index.html` and `public/popup.html` in lieu of the placeholders (where the `TODO(DEVELOPER)` are located).
12
11
13
12
Create and provide a Service Account's credentials:
14
13
1. Create a Service Accounts file as described in the [Server SDK setup instructions](https://firebase.google.com/docs/server/setup#add_firebase_to_your_app).
@@ -20,9 +19,9 @@ Create and setup your LinkedIn app:
20
19
**OAuth 2.0** > **Authorized Redirect URLs** of your LinkedIn app.
21
20
1. Copy the **Client ID** and **Client Secret** of your LinkedIn app and use them to set the `linkedin.client_id` and `linkedin.client_secret` Google Cloud environment variables. For this use:
Copy file name to clipboardExpand all lines: text-moderation/README.md
+10-7
Original file line number
Diff line number
Diff line change
@@ -55,10 +55,13 @@ The security rules only allow users to create message but not edit them afterwar
55
55
56
56
## Deploy and test
57
57
58
-
This sample comes with a web-based UI for testing the function. To test it out:
59
-
60
-
- Create a Firebase Project using the [Firebase Developer Console](https://console.firebase.google.com)
61
-
- Import and configure Firebase in `public/index.html` where the `TODO` is located
62
-
- Install the required dependencies by running `npm install` in the `functions` directory
63
-
- Deploy your project using `firebase deploy`
64
-
- Open the app and add messages to the message board. Try to ad bad words into your message and they should get moderated.
58
+
This sample comes with a Function and web-based UI for testing the function. To configure it:
59
+
60
+
1. Create a Firebase Project using the [Firebase Console](https://console.firebase.google.com).
61
+
1. Clone or download this repo and open the `text-moderation` directory.
62
+
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`.
63
+
1. Configure the CLI locally by using `firebase use --add` and select your project in the list.
64
+
1. Install dependencies locally by running: `cd functions; npm install; cd -`
65
+
1. Deploy your project using `firebase deploy`
66
+
1. Open the app using `firebase open hosting:site`, this will open a browser.
67
+
1. Open the app and add messages to the message board. Try to ad bad words into your message and they should get moderated.
0 commit comments