File size: 1,922 Bytes
a42236e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# AlgoSpaced-DSA-Review — Environment Variables Template
# Copy this file to .env and fill in your actual credentials.
# Do NOT commit .env with real secrets to version control.

# ==========================================
# 1. Multi-Provider AI Keys (Spaced Repetition & Reviews)
# ==========================================
# Primary AI Provider: Google Gemini
GEMINI_API_KEY=your_gemini_api_key_here

# Fallback AI Provider 1: Groq (Llama 3.3 / Qwen)
GROQ_API_KEY=your_groq_api_key_here

# Fallback AI Provider 2: OpenRouter
OPENROUTER_API_KEY=your_openrouter_api_key_here

# ==========================================
# 2. Firebase Public Client Configuration (Auth & UI)
# ==========================================
FIREBASE_API_KEY=your_firebase_api_key_here
FIREBASE_AUTH_DOMAIN=your-app.firebaseapp.com
FIREBASE_PROJECT_ID=your-project-id
FIREBASE_STORAGE_BUCKET=your-project-id.appspot.com
FIREBASE_MESSAGING_SENDER_ID=your_sender_id
FIREBASE_APP_ID=your_app_id
FIREBASE_MEASUREMENT_ID=your_measurement_id

# ==========================================
# 3. Google Cloud / Firebase Admin Service Accounts (Backend Firestore & Storage)
# ==========================================
# Path to service account JSON file (relative to root or absolute)
FIREBASE_CREDENTIALS_PATH=firebase-credentials.json

# Optional: Raw JSON string alternative for cloud container deployments (e.g. Hugging Face Spaces)
# FIREBASE_SERVICE_ACCOUNT_JSON={"type": "service_account", ...}

# ==========================================
# 4. Google Drive & Docs Sync Integration (Problem Dual-Write)
# ==========================================
# Path to Google Cloud Service Account credentials with Drive / Docs API access
GCP_CREDENTIALS_PATH=gcp-credentials.json
GDRIVE_FOLDER_ID=your_google_drive_folder_id_here

# ==========================================
# 5. Server Runtime
# ==========================================
PORT=8000