Search code examples
webcmdfirebasefirebase-hosting

How do I configure the Firebase SDK for the codelab?


I have followed every instruction as it is in the codelabs tutorial for the FriendlyChat app to the best of my understanding.

I pasted into the index page the code generated from clicking the Add firebase to your web app icon in the console.

However, when I run firebase serve and load the page at localhost:5000, I get an alert telling me I have not configured and imported the Firebase SDK.

How exactly do I configure and import the SDK?


Solution

  • You just have to paste the initialization snippet from: Firebase Console > Overview > Add Firebase to your web app in index.html file in web-start folder.