How to configure realtime database in firebase ?

3 minutes read

The Firebase Realtime Database is a cloud-hosted database. Data is stored as JSON and synchronized in realtime to every connected client. When you build cross-platform apps with our iOS, Android, and JavaScript SDKs, all of your clients share one Realtime Database instance and automatically receive updates with the newest data.

Step by step

Follow the below steps

  • First of all , you have to Create Project in Firebase.

  • Click "Realtime Database" from left navigation menu.

  • Click "Create Database".

  • Select "Start in Locked mode" then Click "Enable".

  • Select "Rules" then copy/paste the given rules in it.

    {
      "rules": {
        ".read": true,
        ".write": true
      }
    }
  • Select the highlighted area & copy the "realtime_db_url".

After creating the database then you can use it in your app or either in web project and start coding :-)

Was this article helpful?