-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-dev.bat
More file actions
68 lines (60 loc) · 1.65 KB
/
start-dev.bat
File metadata and controls
68 lines (60 loc) · 1.65 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
@echo off
echo 🚀 Starting AutoDataLab Local Development Environment
echo ==================================================
REM Check if Docker is running
docker info >nul 2>&1
if errorlevel 1 (
echo ❌ Error: Docker is not running. Please start Docker Desktop.
exit /b 1
)
echo ✅ Docker is running
REM Check if .env file exists
if not exist .env (
echo 📝 Creating .env file from .env.example...
copy .env.example .env
echo ✅ .env file created
) else (
echo ✅ .env file already exists
)
REM Check if frontend .env exists
if not exist project-frontend\.env (
echo 📝 Creating frontend .env file...
echo VITE_API_URL=http://localhost:8000 > project-frontend\.env
echo ✅ Frontend .env file created
) else (
echo ✅ Frontend .env file already exists
)
echo.
echo 🏗️ Building Docker containers...
docker-compose build
echo.
echo 🚀 Starting services...
docker-compose up -d
echo.
echo ⏳ Waiting for services to be ready...
timeout /t 10 /nobreak >nul
echo.
echo ✅ Services are starting!
echo.
echo 📊 Service URLs:
echo - Backend API: http://localhost:8000
echo - API Docs: http://localhost:8000/docs
echo - MinIO Console: http://localhost:9001 (minioadmin/minioadmin)
echo - PostgreSQL: localhost:5432
echo - Redis: localhost:6379
echo.
echo 📝 Next steps:
echo 1. Start the frontend:
echo cd project-frontend
echo npm install
echo npm run dev
echo.
echo 2. Open http://localhost:5173 in your browser
echo.
echo 3. View logs:
echo docker-compose logs -f
echo.
echo 4. Stop services:
echo docker-compose down
echo.
echo 🎉 Setup complete! Happy coding!