Files
ColaFlow/.env.example
Yaojia Wang 8c0e6e8c23 feat(docker): Add Phase 4 - automated startup scripts and documentation
Implemented one-click development environment startup solution for frontend developers.

Changes:
- Created scripts/dev-start.ps1 (PowerShell startup script for Windows)
  * Docker health checks
  * Service status monitoring
  * Clean/Logs/Stop command options
  * Auto .env creation from .env.example
  * Friendly colored output and progress indicators

- Created scripts/dev-start.sh (Bash startup script for Linux/macOS)
  * Feature parity with PowerShell version
  * Cross-platform compatibility
  * Color-coded status messages

- Updated .env.example with comprehensive configuration
  * Added missing port configurations
  * Added JWT settings (Issuer, Audience)
  * Added SignalR hub URL
  * Improved documentation and organization

- Created README.md (project documentation)
  * Quick start guide for Docker setup
  * Manual development instructions
  * Project structure overview
  * Technology stack details
  * Troubleshooting guide
  * Development workflow

Testing:
- Verified PowerShell script syntax (valid)
- Verified Bash script has executable permissions
- Confirmed all files created successfully
- Docker services running and healthy

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-04 23:50:55 +01:00

44 lines
1.4 KiB
Plaintext

# ============================================
# ColaFlow 开发环境配置
# Copy this file to .env and update with your values
# ============================================
# ============================================
# PostgreSQL 配置
# ============================================
POSTGRES_DB=colaflow
POSTGRES_USER=colaflow
POSTGRES_PASSWORD=colaflow_dev_password
POSTGRES_PORT=5432
# ============================================
# Redis 配置
# ============================================
REDIS_PASSWORD=colaflow_redis_password
REDIS_PORT=6379
# ============================================
# 后端配置
# ============================================
BACKEND_PORT=5000
ASPNETCORE_ENVIRONMENT=Development
JWT_SECRET_KEY=ColaFlow-Development-Secret-Key-Change-This-In-Production-32-Chars-Long!
JWT_ISSUER=ColaFlow
JWT_AUDIENCE=ColaFlow.API
# ============================================
# 前端配置
# ============================================
FRONTEND_PORT=3000
NEXT_PUBLIC_API_URL=http://localhost:5000
NEXT_PUBLIC_WS_URL=ws://localhost:5000/hubs/project
NEXT_PUBLIC_SIGNALR_HUB_URL=http://localhost:5000/hubs/notifications
# ============================================
# 开发工具(可选)
# ============================================
# Uncomment to enable pgAdmin and Redis Commander
# COMPOSE_PROFILES=tools
# PGADMIN_PORT=5050
# REDIS_COMMANDER_PORT=8081