-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlaunch.ps1
More file actions
42 lines (35 loc) · 2.05 KB
/
launch.ps1
File metadata and controls
42 lines (35 loc) · 2.05 KB
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
# Global Truth Protocol - Quick Launch PowerShell Script
# Run this script from anywhere to start the development environment
$ProjectPath = "C:\Users\Kevan\Downloads\GlobalTruthProtocol"
Write-Host "`n╔══════════════════════════════════════════════════════╗" -ForegroundColor Cyan
Write-Host "║ Global Truth Protocol - Development Launcher ║" -ForegroundColor Cyan
Write-Host "╚══════════════════════════════════════════════════════╝`n" -ForegroundColor Cyan
if (-not (Test-Path $ProjectPath)) {
Write-Host "❌ Project directory not found: $ProjectPath" -ForegroundColor Red
Write-Host "Please update the ProjectPath variable in this script." -ForegroundColor Yellow
exit 1
}
Set-Location $ProjectPath
Write-Host "✓ Changed to project directory:" -ForegroundColor Green
Write-Host " $ProjectPath`n" -ForegroundColor White
Write-Host "Available commands:`n" -ForegroundColor Yellow
Write-Host " [1] npm start - Full automated setup + start"
Write-Host " [2] npm run start:all - Start all services in separate windows"
Write-Host " [3] npm run dev:frontend - Start frontend (http://localhost:3000)"
Write-Host " [4] npm run dev:contracts - Start blockchain (http://127.0.0.1:8545)"
Write-Host " [5] npm run deploy:local - Deploy contracts to local network"
Write-Host " [6] docker-compose up -d - Start database services"
Write-Host ""
$choice = Read-Host "Enter choice (1-6) or press Enter to skip"
switch ($choice) {
"1" { npm start }
"2" { npm run start:all }
"3" { npm run dev:frontend }
"4" { npm run dev:contracts }
"5" { npm run deploy:local }
"6" { docker-compose up -d postgres redis mongodb ipfs }
default {
Write-Host "`n✓ Ready! You can now run any npm command." -ForegroundColor Green
Write-Host " Example: npm start`n" -ForegroundColor Cyan
}
}