Industrial Training




Firebase - Data


The Firebase data is representing JSON objects. If you open your app from Firebase dashboard, you can add data manually by clicking on the + sign.

We will create a simple data structure. You can check the image below.


firebase-data-simple

In the previous chapter, we connected Firebase to our app. Now, we can log Firebase to the console.

console.log(firebase)

firebase-data-log

We can create a reference to our player’s collection.

var ref = firebase.database().ref('players');

console.log(ref);

We can see the following result in the console.


firebase-data-players-log

Hi I am Pluto.