# 🚀 Customer Portal - Development Environment # Copy this file to .env for local development # This configuration is optimized for development with hot-reloading # ============================================================================= # 🗄️ DATABASE CONFIGURATION (Development) # ============================================================================= DATABASE_URL="postgresql://dev:dev@localhost:5432/portal_dev?schema=public" # ============================================================================= # 🔴 REDIS CONFIGURATION (Development) # ============================================================================= REDIS_URL="redis://localhost:6379" # ============================================================================= # 🌐 APPLICATION CONFIGURATION (Development) # ============================================================================= # Backend Configuration APP_NAME="customer-portal-bff" PORT=4000 BFF_PORT=4000 NEXT_PORT=3000 NODE_ENV="development" # Frontend Configuration (NEXT_PUBLIC_ variables are exposed to browser) NEXT_PUBLIC_APP_NAME="Customer Portal (Dev)" NEXT_PUBLIC_APP_VERSION="1.0.0-dev" NEXT_PUBLIC_API_BASE="http://localhost:4000" NEXT_PUBLIC_ENABLE_DEVTOOLS="true" # ============================================================================= # 🔐 SECURITY CONFIGURATION (Development) # ============================================================================= # JWT Secret (Development - OK to use simple secret) JWT_SECRET="dev_secret_for_local_development" JWT_EXPIRES_IN="7d" # Password Hashing (Lower rounds for faster development) BCRYPT_ROUNDS=4 # CORS (Allow local frontend) CORS_ORIGIN="http://localhost:3000" # ============================================================================= # 🏢 EXTERNAL API CONFIGURATION (Development) # ============================================================================= # WHMCS Integration (Demo/Test Environment) WHMCS_BASE_URL="https://demo.whmcs.com" WHMCS_API_IDENTIFIER="your_demo_identifier" WHMCS_API_SECRET="your_demo_secret" # Salesforce Integration (Sandbox Environment) SF_LOGIN_URL="https://test.salesforce.com" SF_CLIENT_ID="your_dev_client_id" SF_PRIVATE_KEY_PATH="./secrets/sf-dev.key" SF_USERNAME="dev@yourcompany.com.sandbox" # ============================================================================= # 📊 LOGGING CONFIGURATION (Development) # ============================================================================= LOG_LEVEL="debug" # ============================================================================= # 🎛️ DEVELOPMENT CONFIGURATION # ============================================================================= # Node.js options for development NODE_OPTIONS="--no-deprecation" # ============================================================================= # 🐳 DOCKER DEVELOPMENT NOTES # ============================================================================= # For Docker development services (PostgreSQL + Redis only): # 1. Run: pnpm dev:start # 2. Frontend and Backend run locally (outside containers) for hot-reloading # 3. Only database and cache services run in containers