Home Knowledge Base Firebase

Firebase

Overview Firebase is a Backend-as-a-Service (BaaS) platform by Google. It provides a comprehensive suite of tools (Database, Auth, Storage, hosting) that scale automatically, allowing developers to build apps without managing servers.

Core Products

1. Authentication Drop-in support for Google, Facebook, Apple, and Email login. Handles sessions and security tokens.

2. Firestore (NoSQL Database) Real-time, scalable document database.

3. Cloud Functions Serverless backend code.

4. Hosting Fast, secure hosting for web apps (global CDN).

Code Example (Web)

import { initializeApp } from "firebase/app";
import { getFirestore, collection, addDoc } from "firebase/firestore";

const app = initializeApp(firebaseConfig);
const db = getFirestore(app);

// Add data
await addDoc(collection(db, "users"), {
  first: "Ada",
  last: "Lovelace",
  born: 1815
});

Vendor Lock-in The main downside of Firebase is that it is proprietary. Migrating away from Firebase (especially Firestore/Auth) is difficult compared to open standards like SQL.

firebasebackendgoogle

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.