Is it necessary to explicitly initialize a Firebase hosted website if there are no plans to start another project?
// Initialize default app
// Retrieve your own options values by adding a web app on
// https://console.firebase.google.com
firebase.initializeApp({
apiKey: "AIza....", // Auth / General Use
appId: "1:27992087142:web:ce....", // General Use
projectId: "my-firebase-project", // General Use
authDomain: "YOUR_APP.firebaseapp.com", // Auth with popup/redirect
databaseURL: "https://YOUR_APP.firebaseio.com", // Realtime Database
storageBucket: "YOUR_APP.appspot.com", // Storage
messagingSenderId: "123456789", // Cloud Messaging
me
asurementId: "G-12345" // Analytics
});
if (!firebase.apps.length)
firebase.initializeApp(firebaseConfig);
https://firebase.google.com/docs/reference/js/v8/firebase#initializeapp
Currently using version 8
<!-- Add Firebase products that you want to use -->
<script src="/__/firebase/8.1.1/firebase-auth.js"></script>
<script src="/__/firebase/8.1.1/firebase-firestore.js"></script>
<script src="/__/firebase/8.1.1/firebase-storage.js"></script>