Skip to content

Commit d306b58

Browse files
start.cmd changes
1 parent fffeed0 commit d306b58

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

src/start.cmd

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,35 @@
11
@echo off
2-
echo Restoring backend python packages...
2+
echo Restoring backend Python packages...
3+
cd api
34
call python -m pip install -r requirements.txt
45
if "%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

911
echo Restoring frontend npm packages...
10-
cd frontend
11-
call npm install
12+
cd App
13+
call npm install --force
1214
if "%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
1922
if "%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"
2829
if "%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

0 commit comments

Comments
 (0)