Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.8 KB

README.md

File metadata and controls

40 lines (27 loc) · 1.8 KB

Firebase HTTPS Callable functions Web Quickstart

The HTTPS Callable functions Web Quickstart demonstrates how to send requests to a server-side function and get a response back using the Firebase JS SDK. It interoperates with the iOS and Android database quickstarts.

Introduction

Read more about Cloud Functions for Firebase

Getting Started

  1. Create your project in the Firebase Console.
  2. Enable the Google sign-in provider in the Authentication > SIGN-IN METHOD tab.
  3. 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.
  4. Clone this repository and open the functions directory: git clone https://github.com/firebase/quickstart-js; cd functions
  5. Install cloud functions dependencies: npm --prefix functions install
  6. On the command line run firebase use --add and select the Firebase project you have created.
  7. On the command line run firebase deploy to deploy the application.
  8. On the command line run firebase open hosting:site to open the deployed web app.
  9. Sign in the Application using the Button.
  10. Write two numbers in the boxes and Click the "Add the Two Numbers" button.
    • You should be getting the result of the addition.
  11. Write a message in the Box below and Click the "Add Message" button.
    • The message is added below but if it contains bad words or SHOUTING!! it will be sanitized.

Support

License

© Google, 2018. Licensed under an Apache-2 license.