How to connect firebase realtime database into our html document

68 views
Skip to first unread message

namrata sonawane

unread,
Mar 10, 2020, 6:45:38 PM3/10/20
to Firebase Google Group
Hi, 

Our website is hosted on firebase, and we are using AMP for our website, now we are going to create shopping page for our website, means all eCommerce functions  are  there 
Eg: product details, add to cart, checkout etc,  now we want create database for our shopping page, and  we have create realtime database in firebase   of products( eg. product-name, price, Quantity, size, color, ), and that database we export in to json file, but now we can not understand how to  fetch that database's data into our html document, or how to connect it.


John Rodkey

unread,
Mar 10, 2020, 9:02:15 PM3/10/20
to fireba...@googlegroups.com
Hi,

I am going to assume you’re using the Firebase Real-Time database.  Here is a link to help you get started - 

I’d suggest going through the docs on how to query and update your data from your html pages

Hope this helps

John

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/cba54f11-f0d2-4367-8c0b-10e2a46db31c%40googlegroups.com.

Sam Stern

unread,
Mar 10, 2020, 9:20:38 PM3/10/20
to Firebase Google Group
Thanks John!

I would also suggest this codelab which will show you how to use Firebase on the web:
https://codelabs.developers.google.com/codelabs/firebase-get-to-know-web/index.html?index=..%2F..index#0

It uses Cloud Firestore rather than the Realtime Database but most of the principles are the same.

- Sam

namrata sonawane

unread,
Mar 12, 2020, 3:02:06 PM3/12/20
to Firebase Google Group
Thanks John and samuel.
Reply all
Reply to author
Forward
0 new messages