-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.ps1
More file actions
27 lines (20 loc) · 767 Bytes
/
Copy pathstart.ps1
File metadata and controls
27 lines (20 loc) · 767 Bytes
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
# This script automates the startup process for both backend and frontend services.
# It first activates the virtual environment and starts the backend server,
# then it navigates to the frontend directory and starts the frontend server.
# Finally, it waits for all processes to finish.
# Run backend
Write-Host "Starting backend..."
# Navigate to the backend directory
cd backend
# Activate the virtual environment
venv\Scripts\Activate.ps1
# Start the backend server using uvicorn
Start-Process powershell -ArgumentList "uvicorn main:app --reload"
# Run frontend
Write-Host "Starting frontend..."
# Navigate to the frontend directory
cd ../frontend
# Start the frontend server using Vite
Start-Process npx vite
# Awaiting for processes to finish
Wait-Process