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 –
I hope you are enjoying with this post! Please share with you friends. Thank you so much!