![]() In this example, we’re using the Realtime Database. You must also add any Firebase products you want to use. You must add the following line to be able to use Firebase with your app. The title of the web page is ESP Firebase App, but you can change it in the following line. In the of the HTML file, we must add all the required metadata. Let’s take a quick look at the HTML file. You need to modify the code with your own firebaseConfig object (from step 20). MessagingSenderId: "REPLACE_WITH_YOUR_Firebase_CONFIGURATION",ĪppId: "REPLACE_WITH_YOUR_Firebase_CONFIGURATION" StorageBucket: "REPLACE_WITH_YOUR_Firebase_CONFIGURATION", ![]() ProjectId: "REPLACE_WITH_YOUR_Firebase_CONFIGURATION", REPLACE WITH YOUR web app's Firebase configurationĪpiKey: "REPLACE_WITH_YOUR_Firebase_CONFIGURATION",ĪuthDomain: "REPLACE_WITH_YOUR_Firebase_CONFIGURATION",ĭatabaseURL: "REPLACE_WITH_YOUR_Firebase_CONFIGURATION", This HTML file creates a simple web page that displays the readings saved on the Realtime Database created on this previous project. index.htmlĬopy the following to your index.html file. Now that you’ve created a Firebase project app successfully on VS Code, follow the next steps to customize the app to display the values saved on the Realtime Database. Now, let’s change the files in the public folder to show your own web page instead of that one. ![]() Congratulations, you’ve set up your Firebase App project correctly.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |