All Guides
Firebase Setup
Integrate Google Firebase into your web or mobile project. Authentication and Firestore.
Beginner15 min
Setup Steps
1. Create a new project at https://console.firebase.google.com
2. Add a web app and copy the configuration
3. Install Firebase SDK:
npm install firebase4. Initialize Firebase (lib/firebase.ts):
javascript
import { initializeApp } from 'firebase/app';
import { getAuth } from 'firebase/auth';
import { getFirestore } from 'firebase/firestore';
const firebaseConfig = {
apiKey: "...",
authDomain: "project.firebaseapp.com",
projectId: "project-id"
};
const app = initializeApp(firebaseConfig);
export const auth = getAuth(app);
export const db = getFirestore(app);5. Install Firebase CLI:
npm install -g firebase-tools
firebase login
firebase init6. Add Firestore data:
javascript
import { collection, addDoc } from 'firebase/firestore';
await addDoc(collection(db, 'users'), { name: 'Ali', email: 'ali@test.com' });7. Authentication:
javascript
import { createUserWithEmailAndPassword } from 'firebase/auth';
await createUserWithEmailAndPassword(auth, email, password);8. Deploy:
firebase deployRelated Guides
MySQL Database Setup
Install MySQL database server, secure it and learn basic operations.
PostgreSQL Setup
Install and configure PostgreSQL database server.
MongoDB Setup
Install MongoDB NoSQL database and learn basic CRUD operations.
Redis Setup
Install Redis in-memory data store. Caching and session management.