Firebase - Data


Advertisements

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
Advertisements