-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstart.bat
More file actions
53 lines (40 loc) · 1.11 KB
/
Copy pathstart.bat
File metadata and controls
53 lines (40 loc) · 1.11 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
50
51
52
@echo off
REM Script to start both frontend and backend together on Windows
echo Starting Z+ Application...
REM Navigate to backend directory
cd "Z plus"
REM Check if virtual environment exists
if not exist "venv" (
echo Creating virtual environment...
python -m venv venv
)
REM Activate virtual environment
echo Activating virtual environment...
call venv\Scripts\activate.bat
REM Install Python dependencies if needed
if not exist "venv\.installed" (
echo Installing Python dependencies...
pip install -r requirements.txt
type nul > venv\.installed
)
REM Build React app
echo Building React app...
cd "..\Z+ Website UI Design (1)"
REM Install npm dependencies if needed
if not exist "node_modules" (
echo Installing npm dependencies...
call npm install
)
REM Build the React app
call npm run build
REM Return to backend directory
cd "..\Z plus"
REM Run Django server
echo.
echo ==========================================
echo Starting Django server...
echo Access the application at: http://localhost:8000
echo ==========================================
echo.
python manage.py runserver
pause