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

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

Notify of
avatar

Alasu Paul Sabrin
Guest
Alasu Paul Sabrin
14 hours 44 minutes ago

hmmm maybe i`m doing something wrong … but i have cloned the repo, install dependencies and run "firebase serve" … but BIG error in console …

"app/duplicate-app"
message:"Firebase: Firebase App named '[DEFAULT]' already exists (app/duplicate-app)."
name:"[DEFAULT]"
stack:"FirebaseError: Firebase: Firebase App named '[DEFAULT]' already exists (app/duplicate-app)

any ideas ???

Ur Mom
Guest
Ur Mom
1 month 19 days 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
1 month 18 days 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

Tim Johne
Guest
Tim Johne
1 month 21 days 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
2 months 10 hours 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
1 month 18 days 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
1 month 19 days ago

Same problem here

Jonathan Canales
Guest
Jonathan Canales
2 months 7 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
2 months 11 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
2 months 13 days ago

Thanks Rob!!!

Raniel Zed Cancino
Guest
Raniel Zed Cancino
2 months 13 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
2 months 14 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
2 months 17 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!

1 2 3 5
wpDiscuz