As a developer it's quick to get started. No overhead of installation and setup. It's a cloud service, so don't have worry about setting-up servers. Firebase tools on your machine are provided as an NPM package. Install with following command, globally on your machine.
npm install firebase-tools -g
This makes it a good choice for independent mobile/web app developers. Signup and login to Firebase.
Create an app. Remeber your app has a URL. JSON Key/Value pairs are shown at that URL. You might chose to manually add/remove/modify data as well.
Consider Two Tier Architecture
Get Startedby referencing Firebase library in your Web Page. You could use CDN location. Or by downloading Firebase bower or npm package. I chose bower (package manager).
bower install firebase
And reference of firebase.js in bower_components. There after
//create an object of Firebase
var ref = new Firebase('URL of your firebase app');
Save Data to Firebase:
// to set a primitive data value
// you may set a JSON object instead
//If you are storing a new object every time, use push (array) instead of set.
//Look for changes to the data
// data added as a child node.
All data elements in Firebase are represented by URL. You can traverse through the nodes in the URL itself. For example, to reach child1 in above example, you could provide URL "http://yourapp.firebase.io/field2/child1" to the Firebase function.
or you could use
Running your application:
You may use any Web-Server to serve HTML files on your machine. Serve is a good choice.
npm install serve -g
Run serve from at the root folder of your application.
Firebase also provides hosting service. Run
(Link application to Firebase app in this step.)
(Deploys to Firebase cloud service)
You can serve HTML files on the cloud now. URL is on App Card It will be your appname.firebasepp.com
This is an introductory blog. Do checkout Security, Authentication, OAuth and Offline features of Firebase.
Also, I've basic Firebase examples on my Github. Use this link to explore.