-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.ps1
More file actions
31 lines (25 loc) · 1.21 KB
/
start.ps1
File metadata and controls
31 lines (25 loc) · 1.21 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
# Ordera Startup Script
# This script starts both the backend and frontend together
Write-Host "Starting Ordera Multi-Tenant Restaurant System..." -ForegroundColor Cyan
# Set the project root directory
$projectRoot = $PSScriptRoot
# Start Backend Server
Write-Host "`nStarting Backend Server..." -ForegroundColor Yellow
$env:PYTHONPATH = '.'
$backendProcess = Start-Process -FilePath "$projectRoot\venv\Scripts\uvicorn.exe" `
-ArgumentList "backend.main:app", "--host", "0.0.0.0", "--port", "8000" `
-WorkingDirectory $projectRoot `
-PassThru `
-WindowStyle Normal
Write-Host "Backend server started (PID: $($backendProcess.Id))" -ForegroundColor Green
Start-Sleep -Seconds 3
# Start Frontend
Write-Host "`nStarting Frontend (Flutter Chrome)..." -ForegroundColor Yellow
Start-Process -FilePath "flutter" `
-ArgumentList "run", "-d", "chrome" `
-WorkingDirectory "$projectRoot\frontend" `
-NoNewWindow
Write-Host "`n✅ Ordera is starting up!" -ForegroundColor Green
Write-Host "Backend: http://localhost:8000" -ForegroundColor Cyan
Write-Host "Frontend: Will open in Chrome automatically" -ForegroundColor Cyan
Write-Host "`nPress Ctrl+C to stop the backend server when done.`n" -ForegroundColor Yellow