1

I'm making the move into Firebase. But Day One I'm stumped with a simple one liner.

This is right from the demo:

var myDataRef = new Firebase('https://un2ubl6u7zs.firebaseio-demo.com/');

And returns in my Chrome Console:

enter image description here

This is from the demo link, but I get exactly the same response in the console for any firebase DB I create. It's probably something REALLY simple, just trying to wrap my brain around Firebase, it's very different coming from a decade in the SQL world.

Thanks for pointers. :-)

Edward Potter
  • 3,760
  • 4
  • 28
  • 39

2 Answers2

1

You will only have access to Firebase, if you include the Firebase JavaScript client as a script:

<script src="https://cdn.firebase.com/js/client/2.4.0/firebase.js"></script>

This will make the Firebase object (and may others) available to your script.

I recommend that you start with this 5-minute interactive tutorial for Firebase. Adding the script tag is explain in step 1 there.

There was a similar question yesterday: Uncaught ReferenceError: Firebase is not defined

Community
  • 1
  • 1
Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
  • The 5-minute interactive tutorial is no longer available at the Url provided. Is this still available? Thank you for your time. – lynnjwalker Aug 22 '16 at 15:44
1

This will not work with the new client.

see upgrade guide: https://firebase.google.com/support/guides/firebase-web

enter image description here

guy mograbi
  • 27,391
  • 16
  • 83
  • 122