-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfix-all.bat
More file actions
49 lines (41 loc) · 1.34 KB
/
Copy pathfix-all.bat
File metadata and controls
49 lines (41 loc) · 1.34 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
@echo off
echo ========================================
echo Complete Fix for Frontend and Backend
echo ========================================
echo.
echo [1/6] Copying logo to frontend...
if exist "C:\Users\lenovo\Downloads\dragAI.png" (
copy "C:\Users\lenovo\Downloads\dragAI.png" "frontend\public\logo.png"
echo Logo copied successfully
) else (
echo Warning: Logo file not found at C:\Users\lenovo\Downloads\dragAI.png
)
echo.
echo [2/6] Fixing backend virtual environment...
cd backend
call venv\Scripts\activate.bat
python -m pip install --force-reinstall fastapi pydantic python-multipart python-dotenv uvicorn
echo.
echo [3/6] Testing backend packages...
python -c "import fastapi; import pydantic; print('Backend packages OK')"
echo.
echo [4/6] Fixing frontend dependencies...
cd ..\frontend
npm cache clean --force
npm install --force --legacy-peer-deps
echo.
echo [5/6] Starting backend server...
cd ..\backend
start "Backend Server" cmd /k "venv\Scripts\activate.bat && python simple_server.py"
echo.
echo [6/6] Starting frontend server...
cd ..\frontend
start "Frontend Server" cmd /k "npm start"
echo.
echo ========================================
echo Setup Complete!
echo ========================================
echo Backend: http://127.0.0.1:8000
echo Frontend: http://localhost:3000
echo ========================================
pause