Skip to content

Instantly share code, notes, and snippets.

@adityathakurxd
Created September 12, 2021 07:55
Show Gist options
  • Save adityathakurxd/e9851b6fd35dcbf3357388386369bb78 to your computer and use it in GitHub Desktop.
Save adityathakurxd/e9851b6fd35dcbf3357388386369bb78 to your computer and use it in GitHub Desktop.
Code for index.html when initializing Firebase for Flutter Web. Note: Use latest version of firebasejs. Link to video: https://youtu.be/l0cFOUJJcGQ
<script src="https://www.gstatic.com/firebasejs/8.4.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.4.1/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.4.1/firebase-analytics.js"></script>
<script>
//Replace with your config data
var firebaseConfig = {
apiKey: "Anha1wShmI",
authDomain: ".firebaseapp.com",
projectId: "vacachal",
storageBucket: "vac.appspot.com",
messagingSenderId: "109037017",
appId: "1:10903047017:web:9eb35c2756d9b878",
measurementId: "G-M90GBQ2EKE"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
firebase.analytics();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment