Configure Firebase Database Rules

How To Configure Firebase Database Rules?

Initialize the Real-time Database JavaScript SDK -
You must specify your Real-time Database URL when initializing your JavaScript SDK. You can find your Real-time Database URL with ProjectId i.e.
-        https://fir-demo-63b26.firebaseio.com/

Initialize your SDK using below code-

// Set the configuration for your app
<script src="https://www.gstatic.com/firebasejs/4.4.0/firebase.js"></script>
<script>
  // Initialize Firebase
  var config = {
    apiKey: "AIza33ACyqBfafJ32Rtt5R12MVvXSBvHa6fD1Q4X",
    authDomain: "fir-demo-63b26.firebaseapp.com",
    databaseURL: "https://fir-demo-63b26.firebaseio.com",
    projectId: "fir-demo-63b16",
    storageBucket: "fir-demo-63b26.appspot.com",
    messagingSenderId: "44244534636121"
  };
  firebase.initializeApp(config);
</script>


Add Firebase to your web app looks like –



Stayed Informed - Firebase Tutorial for Android and IOS

I hope you are enjoying with this post! Please share with you friends. Thank you so much!
ANIL SINGH

Hey! I'm Anil Singh. I author this blog. I'm Active Blogger, Programmer. I love learning new technologies, programming, blogging and participating the forum discussions more...
My Blogs - https://code-sample.com and https://code-sample.xyz
My Books - Interview Questions and Answers Books- Get Your Book in 15+ Digital Stores Worldwide..

You Might Also Like
Post a Comment
www.code-sample.com/. Powered by Blogger.
ASK Questions