-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
54 lines (49 loc) · 2.41 KB
/
.env.example
File metadata and controls
54 lines (49 loc) · 2.41 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# =============================================================================
# PHANTOM - Development Environment Configuration
# =============================================================================
# This file configures the LOCAL DEVELOPMENT environment.
# Copy this to .env and fill in your values.
#
# FOR HACKATHON JUDGES:
# - Development uses Docker for code execution (no external API needed)
# - Production uses Judge0 Cloud for scalability (see .env.production.example)
# =============================================================================
# -----------------------------------------------------------------------------
# DATABASE
# -----------------------------------------------------------------------------
# PostgreSQL password for local Docker container
DB_PASSWORD=phantom_dev_password
# -----------------------------------------------------------------------------
# AUTHENTICATION
# -----------------------------------------------------------------------------
# JWT secret for signing tokens (change for production!)
JWT_SECRET=dev_jwt_secret_change_in_production
# -----------------------------------------------------------------------------
# AI FEATURES (Optional)
# -----------------------------------------------------------------------------
# Gemini API key for AI-powered code judging and hints
# Get your key at: https://makersuite.google.com/app/apikey
GEMINI_API_KEY=your_gemini_api_key_here
# -----------------------------------------------------------------------------
# CODE EXECUTION BACKEND
# -----------------------------------------------------------------------------
# Phantom supports two code execution backends:
#
# 1. DOCKER (Default for Development)
# - Runs code in isolated Docker containers locally
# - Requires Docker Desktop running on your machine
# - No external API keys needed
# - Best for: Local development, offline work
#
# 2. JUDGE0 (Recommended for Production)
# - Uses Judge0 Cloud API for code execution
# - Requires JUDGE0_API_KEY from RapidAPI
# - Better scalability, no Docker infrastructure needed
# - Best for: Production deployments, hackathon demos
#
# Options: 'docker' or 'judge0'
EXECUTION_BACKEND=docker
# Judge0 Cloud API Key (only needed if EXECUTION_BACKEND=judge0)
# Get your FREE API key at: https://rapidapi.com/judge0-official/api/judge0-ce
# Free tier: 50 requests/day - sufficient for demos
JUDGE0_API_KEY=your_judge0_api_key_here