Backend as a Service (BaaS)
Firebase is a platform by Google that provides backend services like database, authentication, hosting, and more.
Authentication → Login system Firestore → Database Hosting → Deploy website Storage → Store files
const firebaseConfig = {
apiKey: "YOUR_KEY",
authDomain: "YOUR_DOMAIN",
};
import { initializeApp } from "firebase/app";
const app = initializeApp(firebaseConfig);
import { getFirestore, addDoc, collection } from "firebase/firestore";
const db = getFirestore();
addDoc(collection(db, "users"), {
name: "John",
age: 20
});
Email/Password login Google login OTP login
firebase deploy