Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea
**/node_modules/*
**/.firebaserc
4 changes: 2 additions & 2 deletions email-confirmation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ firebase functions:config:set gmail.email="myusername@gmail.com" gmail.password=

This sample comes with a web-based UI for testing the function. To set it up:

- Create a Firebase Project using the Firebase Developer Console
- Enable Google Provider in the Auth section
- Create a Firebase Project using the [Firebase Developer Console](https://console.firebase.google.com)
- Enable Google Provider in the [Auth section](https://console.firebase.google.com/project/_/authentication/providers)
- Import and configure Firebase in the `public/index.html` where the `TODO` is located


Expand Down
12 changes: 0 additions & 12 deletions email-confirmation/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,18 +101,6 @@ <h3>Very interesting website with Newsletter</h3>
* TODO(DEVELOPER): Paste the initialization snippet from: Firebase Console > Overview > Add Firebase to your web app. *
*********************************************************************************************************************** -->

<script src="https://www.gstatic.com/firebasejs/3.4.1/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyAu14Qhq_t4GbyZlRwVlFVLellEo4Gjmzs",
authDomain: "functions-email-confirmation.firebaseapp.com",
databaseURL: "https://functions-email-confirmation.firebaseio.com",
storageBucket: "functions-email-confirmation.appspot.com",
messagingSenderId: "207174568617"
};
firebase.initializeApp(config);
</script>
<script src="main.js"></script>
</body>
</html>
8 changes: 4 additions & 4 deletions fcm-notifications/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ The function triggers every time the value of a follow flag changes at `/followe

This sample comes with a web-based UI for testing the function. To test it out:

- Create a Firebase Project using the Firebase Developer Console
- Enable billing since Functions require billing.
- Enable Google Provider in the Auth section
- Import and configure Firebase in the `index.html` where the `TODO` is located
- Create a Firebase Project using the [Firebase Developer Console](https://console.firebase.google.com)
- Enable Google Provider in the [Auth section](https://console.firebase.google.com/project/_/authentication/providers)
- Import and configure Firebase in `public/index.html` where the `TODO` is located
- Install the required dependencies by running `npm install` in the `functions` directory
- Deploy your project using `firebase deploy`
- Open the app and start following a user, this will send a notification to him.
9 changes: 4 additions & 5 deletions text-moderation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,15 @@ The function triggers every time a message is modified. It exits if the message

## Security Rules

The security rules only allow users to create message but not edit them afterwards. Also it does not allows users to set the `sanitized` value. Only the Functions is allowed to modify `sanitized` by using an admin authorized reference.
The security rules only allow users to create message but not edit them afterwards. Also it does not allow users to set the `sanitized` value. Only the Cloud Function is allowed to modify `sanitized` by using an admin authorized reference.


## Deploy and test

This sample comes with a web-based UI for testing the function. To test it out:

- Create a Firebase Project using the Firebase Developer Console
- Enable Google Provider in the Auth section
- Import and configure Firebase in the `index.html` where the `TODO` is located
- Create a Firebase Project using the [Firebase Developer Console](https://console.firebase.google.com)
- Import and configure Firebase in `public/index.html` where the `TODO` is located
- Install the required dependencies by running `npm install` in the `functions` directory
- Deploy your project using `firebase deploy`
- Open the app and add messages to the message board. Try to ad bad words into your message and they should get moderated.