Spaces:
Sleeping
Sleeping
| @echo off | |
| REM run.bat - Start the development environment (Windows) | |
| echo π Starting Multi-Agent System... | |
| REM Activate virtual environment | |
| if not exist "venv" ( | |
| echo β Virtual environment not found. Run 'scripts\setup.bat' first | |
| exit /b 1 | |
| ) | |
| call venv\Scripts\activate.bat | |
| REM Load environment variables from .env | |
| if exist ".env" ( | |
| for /f "delims== tokens=1,*" %%A in (.env) do ( | |
| set "%%A=%%B" | |
| ) | |
| ) else ( | |
| echo β οΈ .env file not found. Using defaults. | |
| ) | |
| REM Start backend | |
| echo π Starting FastAPI backend on http://localhost:8000 | |
| start cmd /k "python -m uvicorn backend.api.main:app --host 0.0.0.0 --port 8000 --reload" | |
| REM Start frontend | |
| if exist "frontend" ( | |
| echo π Starting React frontend on http://localhost:3000 | |
| cd frontend | |
| start cmd /k "npm run dev" | |
| cd .. | |
| ) | |
| echo β¨ System started! | |
| echo Backend: http://localhost:8000 | |
| echo Frontend: http://localhost:3000 | |
| echo API Docs: http://localhost:8000/docs | |
| pause | |