-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
41 lines (33 loc) · 1.04 KB
/
start.bat
File metadata and controls
41 lines (33 loc) · 1.04 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
@echo off
echo 🚀 Starting CrisisCast...
REM Check if Python is installed
python --version >nul 2>&1
if errorlevel 1 (
echo ❌ Python is not installed. Please install Python 3.8+ and try again.
pause
exit /b 1
)
echo ✅ Python detected
REM Create virtual environment if it doesn't exist
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 dependencies
echo 📥 Installing dependencies...
pip install -r requirements.txt
REM Set environment variables for development
set DATABASE_URL=sqlite:///./crisiscast.db
set REDIS_URL=redis://localhost:6379/0
REM Start the application
echo 🚀 Starting CrisisCast API...
echo ==================================================
echo API Documentation: http://localhost:8000/docs
echo Health Check: http://localhost:8000/health
echo ==================================================
echo Press Ctrl+C to stop the server
echo.
python run.py