Spaces:
Sleeping

File size: 1,996 Bytes
cd61bf7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# 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"