-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-dev.bat
More file actions
41 lines (34 loc) Β· 981 Bytes
/
Copy pathstart-dev.bat
File metadata and controls
41 lines (34 loc) Β· 981 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
@echo off
echo π Starting Feedback System Development Environment
REM Check if Docker is running
docker info >nul 2>&1
if %errorlevel% neq 0 (
echo β Docker is not running. Please start Docker and try again.
exit /b 1
)
REM Start backend with PostgreSQL
echo π¦ Starting backend and database...
docker-compose up -d postgres backend
REM Wait for backend to be ready
echo β³ Waiting for backend to start...
timeout /t 5 /nobreak > nul
:wait_backend
curl -f http://localhost:8000/ >nul 2>&1
if %errorlevel% neq 0 (
echo β³ Waiting for backend...
timeout /t 2 /nobreak > nul
goto wait_backend
)
echo β
Backend is ready!
REM Start frontend
echo π¨ Starting frontend...
cd frontend
start npm start
echo π Development environment is ready!
echo.
echo π Access points:
echo Frontend: http://localhost:3000
echo Backend API: http://localhost:8000
echo API Docs: http://localhost:8000/docs
echo.
echo π To stop: docker-compose down