SlideShare a Scribd company logo
Tejas Koundinya
GDG Bangalore
Introduction to
Web Application
Awesome Business Logic!
REST Layer
Web Application
Google App Engine
Spring MVC
Google Cloud Endpoints
Google Cloud Endpoints
Web Application
Realtime Web Application
Google Cloud Messaging?
Mobile Developer?
Server
Database
APIs
The Realtime Backend for your App!
Firebase
➔ Database
➔ Authentication
➔ Security
➔ Hosting
The Firebase Backend
➔ JSON!
➔ JSON Parsing?
◆ Handled by the Firebase API
The Data?
build.gradle
compile 'com.firebase:firebase-client-android:2.3.1+'
Entry Point of the App:
Firebase.setAndroidContext(this);
Setup
Firebase firebase = new Firebase("https://yourapp.firebaseio.com/");
firebase.addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange(DataSnapshot dataSnapshot) {
}
@Override
public void onCancelled(FirebaseError firebaseError) {
}
});
Read Data
Firebase firebase = new Firebase("https://yourapp.
firebaseio.com/");
firebase.child("key").setValue(value);
Write Data
➔ Email and Password
➔ Google
➔ Facebook
➔ Twitter
➔ GitHub
Authentication
Rules!
{
"rules": {
".read": true,
".write": true
}
}
Security
Firebase.getDefaultConfig().setPersistenceEnabled(true);
Offline Capabilities
Demo Time!
tejaskoundinya@gmail.com
/+TejasKoundinya
/tejas.koundinya
@tejaskoundinya
Contact

More Related Content

Firebase