-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.env.example
More file actions
38 lines (32 loc) · 2.03 KB
/
.env.example
File metadata and controls
38 lines (32 loc) · 2.03 KB
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
# Copy this file to .env.local and fill in the values.
# .env.local is gitignored — never commit real secrets.
# ─── Database ────────────────────────────────────────────────────────────
# MongoDB connection string (Atlas or local). Required for chat history,
# submissions, questions, and user data.
MONGODB_URI=mongodb+srv://<user>:<password>@<cluster>/<db>?retryWrites=true&w=majority
# ─── Judge0 (code execution) ─────────────────────────────────────────────
# RapidAPI key for the Judge0 CE endpoint. Without this, the playground's
# Run button will fail with 401 from Judge0.
# Get one at: https://rapidapi.com/judge0-official/api/judge0-ce
RAPIDAPI_KEY=
# ─── Firebase (auth + Firestore for leaderboard) ─────────────────────────
# All NEXT_PUBLIC_* values come from Firebase console → Project settings → Web app.
NEXT_PUBLIC_FIREBASE_API_KEY=
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=
NEXT_PUBLIC_FIREBASE_PROJECT_ID=
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=
NEXT_PUBLIC_FIREBASE_APP_ID=
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID=
# ─── Appwrite (legacy auth + some collections) ───────────────────────────
# From Appwrite Console → your project → Settings.
NEXT_PUBLIC_API_ENDPOINT=https://cloud.appwrite.io/v1
NEXT_PUBLIC_PROJECT_ID=
APPWRITE_ENDPOINT=https://cloud.appwrite.io/v1
APPWRITE_PROJECT_ID=
APPWRITE_API_KEY=
# ─── App ─────────────────────────────────────────────────────────────────
# Used for absolute URLs in server-side fetches.
NEXT_PUBLIC_APP_URL=http://localhost:3000
# Express clans-server port (separate dev process).
PORT=4000