-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
54 lines (47 loc) · 1.43 KB
/
start.bat
File metadata and controls
54 lines (47 loc) · 1.43 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
53
54
@echo off
REM SentinalX Startup Script
REM This script starts all necessary services for the SentinalX platform
echo ========================================
echo SentinalX Platform Startup
echo ========================================
echo.
REM Check if virtual environment exists
if not exist ".venv\Scripts\activate.bat" (
echo [ERROR] Virtual environment not found!
echo Please run setup.bat first or create venv manually:
echo python -m venv .venv
echo.
pause
exit /b 1
)
echo [1/4] Activating virtual environment...
call .venv\Scripts\activate.bat
if errorlevel 1 (
echo [ERROR] Failed to activate virtual environment
pause
exit /b 1
)
echo [OK] Virtual environment activated
echo.
echo [2/4] Checking MongoDB configuration...
echo Using MongoDB Atlas (Cloud Database)
echo Database: SentinalX
echo [OK] MongoDB Atlas configured in .env
echo.
echo [3/4] Starting FastAPI Backend...
echo Backend will start on http://localhost:8000
echo API Documentation: http://localhost:8000/docs
echo.
echo Press Ctrl+C to stop the backend
echo ========================================
echo.
REM Start the backend (this will block until Ctrl+C)
uvicorn backend.app:app --reload --port 8000
REM This part runs after Ctrl+C
echo.
echo ========================================
echo Backend stopped.
echo MongoDB is still running in Docker.
echo To stop MongoDB: docker-compose down
echo ========================================
pause