-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.ps1
More file actions
31 lines (25 loc) · 1.29 KB
/
setup.ps1
File metadata and controls
31 lines (25 loc) · 1.29 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
# setup.ps1 - Quickstart script for DisciplineOS
Write-Host "Starting DisciplineOS Setup..." -ForegroundColor Cyan
# 1. Build and start containers in detached mode
Write-Host "Building and starting containers..." -ForegroundColor Green
docker compose up -d --build
# 2. Wait for DB to be ready (brief pause)
Write-Host "Waiting for database to initialize..." -ForegroundColor Yellow
Start-Sleep -Seconds 10
# 3. Initialize the database (tables)
Write-Host "Creating database tables..." -ForegroundColor Green
docker compose exec backend python init_db.py
# 4. Optional: Seed with demo data
# If you want to use the demo account (test@example.com / password123),
# run: docker compose exec backend python seed_data.py
Write-Host "Setup Complete!" -ForegroundColor Cyan
Write-Host "------------------------------------------------"
Write-Host "Frontend: http://localhost:5173"
Write-Host "API Docs: http://localhost:8000/docs"
Write-Host ""
Write-Host "Next Steps:"
Write-Host "1. Go to http://localhost:5173/register to create your account."
Write-Host "2. Or run 'docker compose exec backend python seed_data.py' for demo data."
Write-Host "------------------------------------------------"
Write-Host "Run 'docker compose logs -f' to see real-time output."
Write-Host "To stop the project, run './stop.ps1'."