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

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

Notify of
avatar

reyou7
Guest
reyou7
11 days 18 hours ago

What a nice combination of, using Microsoft vs code to write program on Mac to run on Google platform 🙂

pascal780
Guest
pascal780
11 days 19 hours ago

Thanks for the great video Rob. I'm also trying to make an application with Polymer and Firebase but I find it difficult to do a multipath update with the Polyfire elements. Can you please provide me an example or hints on how I can achieve this? Thanks!

z0dijak
Guest
z0dijak
24 days 3 hours ago

There's an issue in the line when removing from the firebase database. It should be: this.$.query.ref.child(key).remove(); (ref is missing)

z0dijak
Guest
z0dijak
25 days 18 hours ago

You might come across the same issue as I did when trying to implement the firebase real time database. This should help you: github.com/firebase/polymerfire/issues/172

Alasu Paul Sabrin
Guest
Alasu Paul Sabrin
1 month 4 days 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 ???

Norbert Nagy Abonyi
Guest
Norbert Nagy Abonyi
1 month 2 days ago

Check the imports! I had the same error with "…/paper-button/paper-input.html".

Ur Mom
Guest
Ur Mom
2 months 22 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
2 months 21 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

Gerd Hübner
Guest
Gerd Hübner
2 months 22 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
3 months 4 days 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
2 months 21 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
2 months 22 days ago

Same problem here

Jonathan Canales
Guest
Jonathan Canales
3 months 10 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
3 months 14 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.

1 2 3 5
wpDiscuz