-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-dev.bat
More file actions
50 lines (42 loc) Β· 1.3 KB
/
start-dev.bat
File metadata and controls
50 lines (42 loc) Β· 1.3 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
@echo off
echo π RENTAL PASSPORT - Starting Local Development Environment
echo ==================================================
REM Check if Python is installed
python --version >nul 2>&1
if errorlevel 1 (
echo β Python is not installed. Please install Python 3.8+
pause
exit /b 1
)
REM Navigate to backend directory
cd backend
REM Check if virtual environment exists
if not exist "venv" (
echo π¦ Creating Python virtual environment...
python -m venv venv
)
REM Activate virtual environment
echo π§ Activating virtual environment...
call venv\Scripts\activate.bat
REM Install dependencies
echo π₯ Installing Python dependencies...
pip install -r requirements.txt
REM Check if .env file exists
if not exist ".env" (
echo βοΈ Creating .env file from template...
copy .env.example .env
echo π Please edit .env file with your configuration:
echo - Database URL
echo - JWT Secret Key
echo - AWS S3 Credentials
echo.
pause
)
REM Start the backend server
echo π Starting backend server on http://localhost:8000
echo π API Documentation: http://localhost:8000/api/docs
echo β€οΈ Health Check: http://localhost:8000/api/health
echo.
echo Press Ctrl+C to stop the server
echo ==================================================
python main.py