How krishna-gujjjar/social-clone works
Main Components
A. Client-Side (Mobile Application):
• Frontend Layer (React Native)
• Navigation Structure (Expo Router - evident from the /app directory structure)
• Local Storage Layer (MMKV)
• State Management Layer
• UI Components Layer
B. Backend Services (Firebase):
• Authentication Service
• Cloud Firestore (Database)
• Firebase Storage (Media)
• Cloud Functions (if applicable)
┌─ Client Layer ─────────────────────┐
• ┌─ Navigation ─┐ ┌─ Components ─┐ │
• Auth Flow │ │ - UI │ │
• Tab Flow │ │ - Reels │ │
• ┘ │ - MetaData │ │
• ┘ │
• ┌─ State Management ──────────────┐│
• MMKV Storage + Store ││
• ┘│
• ┘
• ↕ (API Calls)
┌─ Firebase Services ───────────────┐
• ┌─ Auth ─┐ ┌─ Firestore ─┐ │
• Login │ │ - Users │ │
• Register│ │ - Posts │ │
• ┘ │ - MetaData │ │
• ┘ │
• ┌─ Storage ─────────────────┐ │
• Media (Videos/Images) │ │
• ┘ │
• ┘
Important Elements to Highlight
A. Application Flow:
• Auth Flow (/app/(auth))
• Main App Flow (/app/(app))
• Tab Navigation Flow (/app/(app)/(tabs))
B. Core Features:
• Reel System
• User Management
• Social Interactions (Follow/Unfollow)
• Media Management
C. Data Flow:
• User Authentication Flow
• Media Upload Flow
• Social Interaction Flow
Specific Implementation Details
• How authentication flows from client to Firebase Auth
• How media uploads flow from client to Firebase Storage
• How social interactions are stored in Firestore
• How local storage (MMKV) interacts with the app state
Component Relationships
Clear connections between:
• UI Components (/components/ui)
• Service Layer (/services)
• Hooks Layer (/hooks)
• Storage Layer (/services/storages)