@echo off
echo Setting up Python environment for fast-dashboard project...

REM Call conda activate in batch mode
call conda activate fast-dashboard-env || (
    echo Failed to activate environment. Creating it...
    call conda create -n fast-dashboard-env python=3.11 -y
    call conda activate fast-dashboard-env
)

echo Installing dependencies...
pip install -r backend/requirements.txt

echo Environment setup complete!
echo.
echo To activate this environment in the future, run:
echo     conda activate fast-dashboard-env
echo.
echo To run the backend server, run:
echo     cd backend
echo     uvicorn main:app --reload
echo.
pause 