-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
51 lines (43 loc) · 1.17 KB
/
start.bat
File metadata and controls
51 lines (43 loc) · 1.17 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
@echo off
echo Setting up Sadqa Tracker Backend for Windows...
echo ===============================================
REM Check if .env file exists
if not exist .env (
echo.
echo Warning: .env file not found!
echo Please copy .env.example to .env and configure your settings:
echo copy .env.example .env
echo Then edit .env with your database URL and Google OAuth credentials.
pause
exit /b 1
)
REM Check if virtual environment is activated
if "%VIRTUAL_ENV%"=="" (
echo.
echo Warning: Virtual environment not detected!
echo Please activate your virtual environment first:
echo python -m venv venv
echo venv\Scripts\activate
pause
exit /b 1
)
echo.
echo Installing dependencies...
pip install -r requirements-dev.txt
echo.
echo Setting up database...
python -c "
import asyncio
from app.db.init_db import init_db
async def setup():
await init_db()
print('Database setup complete!')
asyncio.run(setup())
"
echo.
echo Starting FastAPI server...
echo API will be available at: http://localhost:8000
echo Documentation will be available at: http://localhost:8000/docs
echo Press Ctrl+C to stop the server
echo.
python main.py