Published on November 30, 2016 by Chrome

Get started with the Firebase Realtime Database documentation: goo.gl/hgWLRL

Picking up from where we left off in the last episode, today on Polycasts we’ll look at how to connect our app to the Firebase realtime database. The Firebase database is extremely easy to setup and since it’s event based, you never have to poll it for changes. Best of all, we can use the new Polymerfire elements to remove extra code and make setup a total breeze!

Polycasts playlist: goo.gl/r5fsMq
Polymer Slack: bit.ly/polymerslack
Polymer G+: goo.gl/YC5Bsh

Subscribe to the Chrome Developers channel: goo.gl/OUF4e2

Leave a Reply

66 Comments on "Firebase Realtime Database — Polycasts #58"

Notify of
avatar

Ur Mom
Guest
Ur Mom
20 days 9 hours ago

Rob, does this not work out of the box when serving with the Polymer CLI? Currently getting 'Cannot read property 'push' of undefined' when doing 'this.$.query.ref.push(…)' running my Polymer App Toolbox starter app.

Tony Trinh
Guest
Tony Trinh
19 days 15 hours ago

Make sure to import polymerfire.html in the same file as the declaration of <firebase-app> (even if you're not using all elements from Polymerfire in the same file). stackoverflow.com/a/41450672/6277151

gerd hübner
Guest
gerd hübner
22 days 23 hours ago

How can I check if ther "user/user.uid" node is already there (or any other data in it) and if not (=user signs in the first time), create it? E.g. to create a dummy todo in this example when user logs in the first time with his google account…

Mohammed Aijaaz
Guest
Mohammed Aijaaz
1 month 1 day ago

Can someone please help? I am getting this errorUncaught TypeError: Cannot read property 'push' of undefined at HTMLElement.add (my-view1.html:36) at HTMLElement.s (polymer.html:1) at HTMLElement.fire (polymer.html:1) at Object.fire (polymer.html:1) at Object.forward (polymer.html:1) at Object.click (polymer.html:1) at HTMLElement.handleNative (polymer.html:1)

Tony Trinh
Guest
Tony Trinh
19 days 15 hours ago

Make sure to import polymerfire.html in the same file as the declaration of <firebase-app> (even if you're not using all elements from Polymerfire in the same file). stackoverflow.com/a/41450672/6277151

Ur Mom
Guest
Ur Mom
20 days 10 hours ago

Same problem here

Jonathan Canales
Guest
Jonathan Canales
1 month 8 days ago

Hey Rob, im new to polymer and javascript, can you point me at some good tutorials of javascript that can b helpful with polymer framework?

Parth Shah
Guest
Parth Shah
1 month 12 days ago

I would love to see Firebase Storage video. I'm working on my portfolio website and I am kind of confused about the proper way of using Firebase Storage for a general audience to download couple documents without authentication.

Matthew Dornfeld
Guest
Matthew Dornfeld
1 month 14 days ago

Thanks Rob!!!

Raniel Zed Cancino
Guest
Raniel Zed Cancino
1 month 15 days ago

Rob, I'm using vaadin's combo box for my project and I'm binding to that my data from my firebase database. Works really great but now I need to get two fields from firebase, then concatenating them and binding them finally to the items list of the combobox. Do you have any tips on how to accomplish that? Thanks!

Vijay Advani
Guest
Vijay Advani
1 month 15 days ago

Full text search, geodata support , indexing , attributes based queries, indexing nested arrays attributes, query documents on nested array values with sort, filter map reduce …..would like to see some examples on these topics

Paul Cozma
Guest
Paul Cozma
1 month 18 days ago

it would be interesting how could we use firebase to upload files, like jpegs and such. Thank you for your great tuts. Amazing work!

Eric Diaz (Eric Diaz, MD)
Guest
Eric Diaz (Eric Diaz, MD)
1 month 18 days ago

@rob_dodson +rob_dodson . Interesting use of firebase-query. I was under the impression, from countless hours of trying to figure out how to use polymerfire, that writing to the database should be done through firebase-document. Is this the officially recommended use or just a nice and practical hack?

1 2 3 5
wpDiscuz