Book Image

Data Oriented Development with Angularjs

Book Image

Data Oriented Development with Angularjs

Overview of this book

Table of Contents (17 chapters)
Data-oriented Development with AngularJS
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Getting started with Firebase


Getting started with Firebase is pretty easy—first, we have to sign up for a free account. Once we do that, a new Firebase is created for us with a unique URL ending in firebaseio.com. We'll use this URL to store and sync data in Firebase.

Installing Firebase

There are two ways of using Firebase: One is to reference the JavaScript client library directly from the Firebase CDNs:

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

The other is to use bower (http://bower.io/), which is a package manager for the web, if we want to install Firebase as a local dependency. Please check Appendix A, Yeoman on how to use bower:

bower install firebase

A nice thing about Firebase is that the Firebase API for Node.js is exactly the same as the Firebase JavaScript API, which means that it can be used in the same way on the client and the server side.

Once you create a new Firebase account and log in to it, you'll see a dashboard with the ability...