Firebase can power your app's backend, including data storage, user authentication, static hosting, and more. Focus on creating extraordinary user experiences. We'll take care of the rest.
Build cross-platform native mobile and web apps with our Android, iOS, and JavaScript SDKs. You can also connect Firebase to your existing backend using our server-side libraries or our REST API.
With Firebase, you can store data and authenticate users in your app with just a few lines of code.
// Create a connection to your Firebase database
let ref = Firebase(url: "https://<YOUR-FIREBASE-APP>.firebaseio.com")
// Save data
ref.setValue(["name": "Alex Wolfe"])
// Listen for realtime changes
ref.observeEventType(.Value, withBlock: { snapshot in
var name = snapshot.value["name"]
println("User full name is \(name)")
})
// Create a connection to your Firebase database
Firebase ref = new Firebase("https://<YOUR-FIREBASE-APP>.firebaseio.com");
// Save data
ref.setValue("Alex Wolfe");
// Listen for realtime changes
ref.addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange(DataSnapshot snap) {
System.out.println(snap.getName() + " -> " + snap.getValue());
}
@Override public void onCancelled(FirebaseError error) { }
});
// Create a connection to your Firebase database
Firebase *ref = [[Firebase alloc] initWithUrl:@"https://<YOUR-FIREBASE-APP>.firebaseio.com"];
// Save data
[ref setValue:@{@"name": @"Alex Wolfe"}];
// Listen for realtime changes
[ref observeEventType:FEventTypeValue withBlock:^(FDataSnapshot *snapshot) {
NSString *name = snapshot.value[@"name"];
NSLog(@"User full name is: %@", name);
}];
// Create a connection to your Firebase database
var ref = new Firebase("https://<YOUR-FIREBASE-APP>.firebaseio.com");
// Save data
ref.set({ name: "Alex Wolfe" });
// Listen for realtime changes
ref.on("value", function(data) {
var name = data.val().name;
alert("My name is " + name);
});
Store & sync data with our NoSQL cloud database. Data is stored as JSON, synced to all connected clients in realtime, and available when your app goes offline.
Authenticate users with email & password, Facebook, Twitter, GitHub, Google, anonymous auth, or easily integrate with your existing authentication system.
Deploy your web app in seconds with our production-grade static asset hosting. From acquiring the SSL cert to serving your content on our global CDN, we do it all for you.