-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSTART_APP.bat
More file actions
40 lines (34 loc) · 980 Bytes
/
START_APP.bat
File metadata and controls
40 lines (34 loc) · 980 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
@echo off
echo ========================================
echo Starting Product Trend Automation
echo ========================================
echo.
cd /d "%~dp0"
echo Starting Docker containers...
docker compose up -d
if %ERRORLEVEL% NEQ 0 (
echo.
echo ERROR: Failed to start Docker containers
echo Make sure Docker Desktop is running!
echo.
pause
exit /b 1
)
echo.
echo Waiting for services to initialize...
timeout /t 15 /nobreak > nul
echo.
echo Initializing database...
docker compose exec -T backend python -c "from models.database import init_db; init_db()"
echo.
echo ========================================
echo Application Started Successfully!
echo ========================================
echo.
echo Frontend Dashboard: http://localhost:3000
echo Backend API: http://localhost:8000
echo API Documentation: http://localhost:8000/docs
echo.
echo Press any key to open the dashboard in your browser...
pause > nul
start http://localhost:3000