This document is not up-to-date, please refer to the Japanese document.

Set-up

Register at https://firebase.google.com/.
Once you are registerd and logged in click on add project.

Setup-FirebaseWellcome-en

Enter an optional project name and click [Continue].

Setup-addProject-en

A Google Analytics for your Firebase project screen will appear. Un-check the field Enable Google Analytics for this project. Click the Create a new project button to create a new project.

Setup-addProject2-en

The message “Your new project is ready” will be displayed when the project has been created. Click the Continue button.

Setup-addProject2-en

The project console screen will appear. Click the </> icon as in the picture.

Setup-addProject4-en

The “Add Firebase to Web App” screen appears. Enter test in the register app field and click the Register App button.

Setup-addProject5-en

The settings script screen will appear. This will be used later. Copy and paste it to somewhere and click the Proceed to console button.

Setup-addProject6-en

Authentication

Before creating a flow, the application authentification setting must be performed.
This time, anonymous authentication is used.

Click Authentication in the console screen.

Setup-authenticationSidebar1-en

Click Get started.

Setup-authenticationSidebar2-en

At the authentication screen click on Sign-in method.

Setup-authenticationSidebar3-en

Select Anonymous, turn the enable switch on and click save.

Setup-authenticationSidebar4-en

Confirm that Anonymous is enabled.

Setup-anonymousStatusEnabled-en

Set up Realtime Database

Next, click Realtime Database from the menu on the left and then click Create Database from Realtime Database.

Setup-database-en

Leave the database options as they are and click next.

Setup-databaseSecurity-en

Select Begin test mode and click Enable.

Setup-databaseSecurity2-en

Select Realtime Database > Rules > Edit rules.
Paste the following rule onto the form and publish it.

{
  "rules": {
    ".read": true,
    ".write": false,
    "test": {
      ".indexOn": "ts"
    }
  }
}

* Replace "test" with the path where you want to store the data in the Realtime Database.
* Replace "ts" with the key name stored as a timestamp in the Realtime Database.

Setup-setRules

results matching ""

    No results matching ""