-
Notifications
You must be signed in to change notification settings - Fork 21
/
start.cmd
42 lines (37 loc) · 825 Bytes
/
start.cmd
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
@echo off
set NODE_OPTIONS=--max_old_space_size=8192
echo.
echo Restoring backend python packages
echo.
call python -m pip install -r requirements.txt
if "%errorlevel%" neq "0" (
echo Failed to restore backend python packages
exit /B %errorlevel%
)
echo.
echo Restoring frontend npm packages
echo.
cd frontend
call npm install
if "%errorlevel%" neq "0" (
echo Failed to restore frontend npm packages
exit /B %errorlevel%
)
echo.
echo Building frontend
echo.
call npm run build
if "%errorlevel%" neq "0" (
echo Failed to build frontend
exit /B %errorlevel%
)
echo.
echo Starting backend
echo.
cd ..
start http://127.0.0.1:50505
call python -m uvicorn app:app --port 50505 --reload
if "%errorlevel%" neq "0" (
echo Failed to start backend
exit /B %errorlevel%
)