# Pre-deployment checklist for Windows Write-Host "🔍 Checking deployment readiness..." -ForegroundColor Cyan Write-Host "" # Check if git initialized if (-not (Test-Path ".git")) { Write-Host "❌ Git not initialized. Run: git init" -ForegroundColor Red exit 1 } Write-Host "✅ Git initialized" -ForegroundColor Green # Check critical files exist $files = @( "backend\railway.json", "backend\Procfile", "backend\.env.railway.template", "frontend\vercel.json", "frontend\.env.vercel.template", "DEPLOYMENT.md" ) foreach ($file in $files) { if (-not (Test-Path $file)) { Write-Host "❌ Missing: $file" -ForegroundColor Red exit 1 } } Write-Host "✅ All deployment configs present" -ForegroundColor Green # Check .gitignore if (-not (Test-Path ".gitignore")) { Write-Host "❌ Missing .gitignore" -ForegroundColor Red exit 1 } Write-Host "✅ .gitignore exists" -ForegroundColor Green # Check backend dependencies if (-not (Test-Path "backend\requirements.txt")) { Write-Host "❌ Missing backend\requirements.txt" -ForegroundColor Red exit 1 } Write-Host "✅ Backend dependencies defined" -ForegroundColor Green # Check frontend dependencies if (-not (Test-Path "frontend\package.json")) { Write-Host "❌ Missing frontend\package.json" -ForegroundColor Red exit 1 } Write-Host "✅ Frontend dependencies defined" -ForegroundColor Green Write-Host "" Write-Host "🎉 Ready for deployment!" -ForegroundColor Green Write-Host "" Write-Host "Next steps:" -ForegroundColor Yellow Write-Host "1. Push to GitHub: git push origin main" Write-Host "2. Deploy backend to Railway (https://railway.app)" Write-Host "3. Deploy frontend to Vercel (https://vercel.com)" Write-Host "4. Read DEPLOYMENT.md for detailed instructions" Write-Host "" Write-Host "Quick start:" -ForegroundColor Cyan Write-Host " git add ." Write-Host ' git commit -m "Ready for production deployment"' Write-Host " git push origin main"