# =========================================== # Real Estate Agent Platform - Backend Environment Variables # Copy this file to .env and fill in your values # =========================================== # Application NODE_ENV=development PORT=3001 APP_NAME="Real Estate Agent Platform" API_URL=http://localhost:3001 FRONTEND_URL=http://localhost:3000 ADMIN_URL=http://localhost:3002 # Database (PostgreSQL) DATABASE_URL="postgresql://postgres:password@localhost:5432/real_estate_db?schema=public" # JWT Authentication JWT_SECRET=your-super-secret-jwt-key-change-in-production JWT_ACCESS_EXPIRATION=15m JWT_REFRESH_EXPIRATION=7d # Password Hashing BCRYPT_SALT_ROUNDS=12 # Google OAuth GOOGLE_CLIENT_ID=your-google-client-id GOOGLE_CLIENT_SECRET=your-google-client-secret GOOGLE_CALLBACK_URL=http://localhost:3001/auth/google/callback # Facebook OAuth FACEBOOK_APP_ID=your-facebook-app-id FACEBOOK_APP_SECRET=your-facebook-app-secret FACEBOOK_CALLBACK_URL=http://localhost:3001/auth/facebook/callback # AWS S3 (File Storage) AWS_ACCESS_KEY_ID=your-aws-access-key AWS_SECRET_ACCESS_KEY=your-aws-secret-key AWS_REGION=us-east-1 AWS_S3_BUCKET=your-s3-bucket-name # Email (SMTP / SendGrid) MAIL_HOST=smtp.sendgrid.net MAIL_PORT=587 MAIL_USER=apikey MAIL_PASSWORD=your-sendgrid-api-key MAIL_FROM="Real Estate Platform " # Stripe (Payments) STRIPE_SECRET_KEY=sk_test_your-stripe-secret-key STRIPE_WEBHOOK_SECRET=whsec_your-webhook-secret STRIPE_PUBLISHABLE_KEY=pk_test_your-stripe-publishable-key # Firebase (Push Notifications) FIREBASE_PROJECT_ID=your-firebase-project-id FIREBASE_CLIENT_EMAIL=firebase-adminsdk@your-project.iam.gserviceaccount.com FIREBASE_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\nYour-Private-Key\n-----END PRIVATE KEY-----" # Redis (Caching & Queue) REDIS_HOST=localhost REDIS_PORT=6379 REDIS_PASSWORD= REDIS_DB=0 # Rate Limiting THROTTLE_TTL=60 THROTTLE_LIMIT=100 # Logging LOG_LEVEL=debug # CORS CORS_ORIGINS=http://localhost:3000,http://localhost:3002