Skip to content
Snippets Groups Projects
Commit b5514068 authored by Endrizzi, Marco (UG - Comp Sci & Elec Eng)'s avatar Endrizzi, Marco (UG - Comp Sci & Elec Eng)
Browse files

Moved Firebase from index.html to boot file

parent b75f0842
No related branches found
No related tags found
No related merge requests found
// Firebase App (the core Firebase SDK) is always required and must be listed first
import firebase from "firebase/app";
// If you are using v7 or any earlier version of the JS SDK, you should import firebase using namespace import
// import * as firebase from "firebase/app"
// If you enabled Analytics in your project, add the Firebase SDK for Analytics
import "firebase/analytics";
// Add the Firebase products that you want to use
import "firebase/auth";
import "firebase/database";
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
var firebaseConfig = {
apiKey: "AIzaSyBPUdoB3wV6A9L-H1-J5POiQRmgqqcL9Bk",
authDomain: "nightlyfe-308016.firebaseapp.com",
projectId: "nightlyfe-308016",
storageBucket: "nightlyfe-308016.appspot.com",
messagingSenderId: "469882119194",
appId: "1:469882119194:web:4ead2d00c69be60ec41da3",
measurementId: "G-E6SZFDYGCD"
};
// Initialize Firebase
let firebaseApp = firebase.initializeApp(firebaseConfig);
let firebaseAuth = firebaseApp.auth()
let firebaseDb = firebaseApp.database()
let analytics = firebaseApp.analytics()
export { firebaseAuth, firebaseDb, analytics}
\ No newline at end of file
...@@ -23,28 +23,5 @@ ...@@ -23,28 +23,5 @@
<!-- DO NOT touch the following DIV --> <!-- DO NOT touch the following DIV -->
<div id="q-app"></div> <div id="q-app"></div>
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/8.3.1/firebase-app.js"></script>
<!-- TODO: Add SDKs for Firebase products that you want to use
https://firebase.google.com/docs/web/setup#available-libraries -->
<script src="https://www.gstatic.com/firebasejs/8.3.1/firebase-analytics.js"></script>
<script>
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
var firebaseConfig = {
apiKey: "AIzaSyBPUdoB3wV6A9L-H1-J5POiQRmgqqcL9Bk",
authDomain: "nightlyfe-308016.firebaseapp.com",
projectId: "nightlyfe-308016",
storageBucket: "nightlyfe-308016.appspot.com",
messagingSenderId: "469882119194",
appId: "1:469882119194:web:4ead2d00c69be60ec41da3",
measurementId: "G-E6SZFDYGCD"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
firebase.analytics();
</script>
</body> </body>
</html> </html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment