-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
42 lines (37 loc) · 1.07 KB
/
start.bat
File metadata and controls
42 lines (37 loc) · 1.07 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
32
33
34
35
36
37
38
39
40
41
42
@echo off
echo ========================================
echo Product Trend Automation System
echo ========================================
echo.
echo Checking if .env file exists...
if not exist .env (
echo Creating .env file from .env.example...
copy .env.example .env
echo.
echo IMPORTANT: Please edit .env file and add your API keys before continuing!
echo Press any key to open .env file in notepad...
pause
notepad .env
echo.
)
echo Starting Docker containers...
docker-compose up -d
echo.
echo Waiting for services to start...
timeout /t 10 /nobreak
echo.
echo Initializing database...
docker-compose exec 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 To view logs: docker-compose logs -f
echo To stop: docker-compose down
echo.
pause