forked from devhub-ai/devhub
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
27 lines (22 loc) · 693 Bytes
/
setup.bat
File metadata and controls
27 lines (22 loc) · 693 Bytes
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
@echo off
REM Check and setup backend virtual environment if not exists
IF NOT EXIST server\venv (
echo Setting up backend virtual environment...
python -m venv server\venv
)
call server\venv\Scripts\activate
REM Install backend dependencies
pip install -r server\requirements.txt
if %errorlevel% neq 0 exit /b %errorlevel%
REM Start backend
start cmd /k "cd server && flask run"
REM Check and setup frontend node modules if not exists
IF NOT EXIST client\node_modules (
echo Setting up frontend node modules...
pushd client
npm install --force
if %errorlevel% neq 0 popd & exit /b %errorlevel%
popd
)
REM Start frontend
start cmd /k "cd client && npm run dev"