-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_local.bat
More file actions
48 lines (39 loc) · 1.13 KB
/
run_local.bat
File metadata and controls
48 lines (39 loc) · 1.13 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
@echo off
REM Hatchmark Local Development Server Script
REM This script starts both the backend API and frontend development servers
echo Starting Hatchmark Digital Authenticity Service...
echo ==================================================
REM Check if virtual environment exists
if not exist ".venv" (
echo Creating Python virtual environment...
python -m venv .venv
)
REM Activate virtual environment
call .venv\Scripts\activate.bat
REM Install backend dependencies
echo Installing backend dependencies...
cd backend\src
pip install -r requirements.txt
cd ..\..
REM Install frontend dependencies
echo Installing frontend dependencies...
cd frontend
call npm install
cd ..
echo.
echo Starting services...
echo Backend API will run on: http://localhost:3002
echo Frontend will run on: http://localhost:5173
echo.
echo Press Ctrl+C to stop services
REM Start backend
echo Starting backend server...
cd backend
start /B python local_dev_server.py
cd ..
REM Wait for backend to start
timeout /t 3 /nobreak >nul
REM Start frontend
echo Starting frontend server...
cd frontend
call npm run dev