# Fully automated (recommended)
.\setup_auto.bat
# Interactive mode
.\quick_setup.bat# Fully automated (recommended)
./setup_auto.sh
# Interactive mode
./quick_setup.sh| Component | Configuration |
|---|---|
| 🔐 Security Keys | SECRET_KEY, ENCRYPTION_KEY, JWT_SECRET (all cryptographically secure) |
| 🗄️ Database | PostgreSQL connection (localhost:5432) |
| 💾 Redis | Redis connection (localhost:6379) |
| 🌐 CORS | Localhost origins (3000, 8000, 8080) |
| 🤖 LLM Providers | All providers configured (keys empty - add if needed) |
| 📂 Storage | Local filesystem (./storage) |
| ⚙️ Features | WebSocket, Analytics enabled |
# In backend/.env
POSTGRES_PASSWORD=<change-this-secure-password>
APP_DEBUG=false
APP_ENVIRONMENT=production
CORS_ORIGINS=https://yourdomain.com# In backend/.env (add if you want to use cloud LLMs)
OPENAI_API_KEY=sk-...
ANTHROPIC_API_KEY=sk-ant-...
GROQ_API_KEY=gsk_...cd backend
poetry run uvicorn app.main:app --reloadcd frontend
npm run dev- Frontend: http://localhost:3000
- API Docs: http://localhost:8000/docs
Backend:
cd backend
python scripts/generate_env.py # Non-interactive
python scripts/generate_env.py -i # Interactive wizard
python scripts/generate_env.py --force # Force overwriteFrontend:
cd frontend
node scripts/generate_env.js # Non-interactive
node scripts/generate_env.js -i # Interactive wizard
node scripts/generate_env.js --force # Force overwritepython scripts/validate_env.py # Standard validation
python scripts/validate_env.py --strict # Strict mode
python scripts/validate_env.py --quiet # Quiet mode# Install Python 3.11+
# https://www.python.org/downloads/# Install Node.js 18+
# https://nodejs.org/# Ensure PostgreSQL is running
# Windows: Check Services
# Linux: sudo systemctl status postgresql
# Mac: brew services list# Ensure Redis is running
# Windows: Check Services
# Linux: sudo systemctl status redis
# Mac: brew services list# Get detailed errors
python scripts/validate_env.py --strict
# Fix issues in backend/.env- Complete Guide:
docs/AUTO_SETUP_GUIDE.md - Implementation Summary:
AUTO_SETUP_SUMMARY.md
- Check validation output for specific errors
- Review
docs/AUTO_SETUP_GUIDE.mdtroubleshooting section - Verify prerequisites are installed
- Check service status (PostgreSQL, Redis)
Setup Time: < 5 minutes
Manual Steps: 0 (for local development)
Platform: Windows, Linux, Mac