File tree Expand file tree Collapse file tree 1 file changed +16
-12
lines changed
Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Original file line number Diff line number Diff line change 11@ echo off
2- echo Restoring backend python packages...
2+ echo Restoring backend Python packages...
3+ cd api
34call python -m pip install -r requirements.txt
45if " %errorlevel% " neq " 0" (
5- echo Failed to restore backend python packages
6+ echo Failed to restore backend Python packages
67 exit /B %errorlevel%
78)
9+ cd ..
810
911echo Restoring frontend npm packages...
10- cd frontend
11- call npm install
12+ cd App
13+ call npm install --force
1214if " %errorlevel% " neq " 0" (
1315 echo Failed to restore frontend npm packages
1416 exit /B %errorlevel%
1517)
18+ cd ..
1619
17- echo Building frontend ...
18- call npm run build
20+ echo Starting backend ...
21+ start /B python api/app.py --port= 8000
1922if " %errorlevel% " neq " 0" (
20- echo Failed to build frontend
23+ echo Failed to start backend
2124 exit /B %errorlevel%
2225)
2326
24- echo Starting backend...
25- cd ..
26- start http://127.0.0.1:5000
27- call python -m uvicorn app:app --port 5000 --reload
27+ echo Starting frontend...
28+ start /B cmd /c " cd App && npm start"
2829if " %errorlevel% " neq " 0" (
29- echo Failed to start backend
30+ echo Failed to start frontend
3031 exit /B %errorlevel%
3132)
33+
34+ echo Backend running at http://127.0.0.1:8000
35+ echo Frontend running at http://localhost:3000
You can’t perform that action at this time.
0 commit comments