← ClaudeAtlas

environment-setuplisted

Configure and manage development, staging, and production environments. Use when setting up environment variables, managing configurations, or separating environments. Handles .env files, config management, and environment-specific settings.
aiskillstore/marketplace · ★ 329 · Data & Documents · score 82
Install: claude install-skill aiskillstore/marketplace
# Environment Configuration ## When to use this skill - **New Projects**: Initial environment setup - **Multiple Environments**: Separate dev, staging, production - **Team Collaboration**: Share consistent environments ## Instructions ### Step 1: .env File Structure **.env.example** (template): ```bash # Application NODE_ENV=development PORT=3000 APP_URL=http://localhost:3000 # Database DATABASE_URL=postgresql://user:password@localhost:5432/myapp DATABASE_POOL_MIN=2 DATABASE_POOL_MAX=10 # Redis REDIS_URL=redis://localhost:6379 REDIS_TTL=3600 # Authentication JWT_ACCESS_SECRET=change-me-in-production-min-32-characters JWT_REFRESH_SECRET=change-me-in-production-min-32-characters JWT_ACCESS_EXPIRY=15m JWT_REFRESH_EXPIRY=7d # Email SMTP_HOST=smtp.gmail.com SMTP_PORT=587 SMTP_USER=your-email@gmail.com SMTP_PASSWORD=your-app-password # External APIs STRIPE_SECRET_KEY=sk_test_xxx STRIPE_PUBLISHABLE_KEY=pk_test_xxx AWS_ACCESS_KEY_ID=AKIAXXXXXXXX AWS_SECRET_ACCESS_KEY=xxxxxxxx AWS_REGION=us-east-1 AWS_S3_BUCKET=myapp-uploads # Monitoring SENTRY_DSN=https://xxx@sentry.io/xxx LOG_LEVEL=info # Feature Flags ENABLE_2FA=false ENABLE_ANALYTICS=true ``` **.env.local** (per developer): ```bash # Developer personal settings (add to .gitignore) DATABASE_URL=postgresql://localhost:5432/myapp_dev LOG_LEVEL=debug ``` **.env.production**: ```bash NODE_ENV=production PORT=8080 APP_URL=https://myapp.com DATABASE_URL=${DATABASE_URL} # Injected from environment variables REDIS_URL=${RE