-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.ps1
More file actions
22 lines (18 loc) · 1.03 KB
/
Copy pathinstall.ps1
File metadata and controls
22 lines (18 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$ErrorActionPreference = "Stop"
function Install-Service{
param (
[string]$Name,
[string]$Command,
[int]$DelaySeconds = 3
)
Write-Host "Installing $Name ..." -ForegroundColor Green
Start-Process powershell -ArgumentList "-NoExit", "-Command", $Command
Start-Sleep -Seconds $DelaySeconds
}
Install-Service "plan-service" "cd backend/services/plan-service; python -m venv venv; pip install -r requirements.txt"
Install-Service "template-service" "cd backend/services/template-service; python -m venv venv; pip install -r requirements.txt"
Start-Service "redis-docker" "docker run --name my-redis -p 6379:6379 -d redis:7-alpine redis-server --appendonly yes --requirepass 'Harsh@3134'"
Install-Service "auth-service" "cd backend/services/auth-service; npm install; npx prisma generate; npx prisma db push; npm run build"
Install-Service "api-gateway" "cd backend/api-gateway; npm install; npm run build"
Install-Service "frontend" "cd frontend; npm run dev"
Write-Host "All service started" -ForegroundColor Green