After playing with the tutorial on the Firebase web (https://www.firebase.com/tutorial/#gettingstarted), I became convinced that I wanted to utilize Firebase API in my project because of how awesomely fast their database could get in real-time.
On the plus side, it's the best fit for AngularJS. Hence, why Firebase created a helper library for AngularJS called AngularFire. I am probably biased because using Firebase will be my first experience with hosted database. So, I might change my mind if I experimented with other hosted database.
My first tackle on the project was to see things thru from front to back, and then back to front. This way, I could understand how AngularJS and Firebase work together. Since I got some basic AngularJS down, I started playing Firebase for one day. After finally figuring out how to use $firebase and $add from AngularFire libary in my main.js, I started to understand a little of what Firebase can do.
After ScreenHero-ing my mentor, I explained what I understood so far. My mentor then guided me and suggested that I read the documentations by Firebase, specifically on the database.
Reading all of the docs on Firebase really helped, especially "Reading Data" doc. The concept with "Child-Added" helped me get a better understanding of how I can create a list of tasks in my web app.
On the plus side, it's the best fit for AngularJS. Hence, why Firebase created a helper library for AngularJS called AngularFire. I am probably biased because using Firebase will be my first experience with hosted database. So, I might change my mind if I experimented with other hosted database.
My first tackle on the project was to see things thru from front to back, and then back to front. This way, I could understand how AngularJS and Firebase work together. Since I got some basic AngularJS down, I started playing Firebase for one day. After finally figuring out how to use $firebase and $add from AngularFire libary in my main.js, I started to understand a little of what Firebase can do.
After ScreenHero-ing my mentor, I explained what I understood so far. My mentor then guided me and suggested that I read the documentations by Firebase, specifically on the database.
Reading all of the docs on Firebase really helped, especially "Reading Data" doc. The concept with "Child-Added" helped me get a better understanding of how I can create a list of tasks in my web app.
The child_added event is typically used when retrieving a list of items (for example, chat messages) in Firebase. Unlike value which fires for the entire contents of the location, child_added fires once for each immediate child and continues to trigger as new children are added. Your event callback is passed a snapshot containing the new child's data.
Example:
var usersRef = new Firebase('https://SampleChat.firebaseIO-demo.com/users/'); usersRef.on('child_added', function(snapshot) {
var userName = snapshot.name(), userData = snapshot.val();
alert('User ' + userName + ' has entered the chat');
});
Source:
https://www.firebase.com/docs/reading-data.html.
So far, no blocker in my project. Just taking things one step at a time. (In case you're wondering, yes, I am still at Hackbright this late at 11:52PM. I will head off for home soon as I post this!)
<3 Kiki
<3 Kiki