Environment Variables Template
Copy these to a .env file in the project root:
# ============================================================================
# LEMON SQUEEZY (Required for payment processing and license delivery)
# ============================================================================
# Get these from: https://app.lemonsqueezy.com/settings/api
# API Key (from Settings → API → Create API Key)
LEMON_SQUEEZY_API_KEY=eyJ0eXAiOiJKV1QiLCJhbGc...
# Store ID (from Settings → API, shown at top)
LEMON_SQUEEZY_STORE_ID=12345
# Product IDs (from product URL: /products/PRODUCT_ID)
LEMON_SQUEEZY_PRODUCT_ID=67890
# Webhook Secret (from Settings → Webhooks → Generate secret)
LEMON_SQUEEZY_WEBHOOK_SECRET=whsec_abc123...
# ============================================================================
# EMAIL PROVIDER (Required for license delivery emails)
# ============================================================================
EMAIL_PROVIDER=resend
RESEND_API_KEY=re_abc123...
# ============================================================================
# DOWNLOAD SECURITY
# ============================================================================
# Generate with: openssl rand -hex 32
DOWNLOAD_SECRET=your_random_64_char_hex_here
# ============================================================================
# SITE CONFIGURATION
# ============================================================================
SITE_URL=http://localhost:3001
ALLOWED_ORIGINS=http://localhost:3001,http://localhost:3000
# ============================================================================
# AI PROVIDER (Already configured)
# ============================================================================
OPENROUTER_API_KEY=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
AI_MODEL=openai/gpt-4o-mini
# ============================================================================
# SERVER
# ============================================================================
PORT=4001
NODE_ENV=development
Quick Setup Command
# Generate download secret
openssl rand -hex 32
# Create .env file (paste the template above)
nano .env
# Or copy from template
cp docs/ENV-VARIABLES-TEMPLATE.md .env
# Then edit with your actual values