-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
61 lines (53 loc) · 1.44 KB
/
Copy pathsetup.bat
File metadata and controls
61 lines (53 loc) · 1.44 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
@echo off
echo ========================================
echo Agentic AI Workflow - DragAI Setup
echo ========================================
echo.
echo [1/5] Creating environment file...
if not exist .env (
copy .env.example .env
echo Environment file created. Please edit .env with your API keys.
) else (
echo Environment file already exists.
)
echo.
echo [2/5] Setting up Backend...
cd backend
if not exist venv (
echo Creating Python virtual environment...
python -m venv venv
)
echo Activating virtual environment...
call venv\Scripts\activate
echo Installing Python dependencies...
pip install --upgrade pip
pip install -r requirements.txt
echo.
echo [3/5] Setting up Frontend...
cd ..\frontend
if not exist node_modules (
echo Installing Node.js dependencies...
npm install
) else (
echo Node modules already installed.
)
echo.
echo [4/5] Creating necessary directories...
cd ..
if not exist models mkdir models
if not exist deployments mkdir deployments
if not exist logs mkdir logs
if not exist data mkdir data
if not exist notebooks mkdir notebooks
echo.
echo [5/5] Setup complete!
echo.
echo ========================================
echo Next Steps:
echo ========================================
echo 1. Edit .env file with your API keys
echo 2. Run: start-backend.bat (in new terminal)
echo 3. Run: start-frontend.bat (in new terminal)
echo 4. Open: http://localhost:3000
echo ========================================
pause