chat-robot / setup.bat
MuhammadSaad16's picture
Add application file
0cee4dc
@echo off
setlocal
REM Navigate to the backend directory
cd backend
REM Check if virtual environment exists, if not, create it
if not exist venv (
echo Creating virtual environment...
python -m venv venv
)
REM Activate virtual environment
echo Activating virtual environment...
call venv\Scripts\activate
REM Install dependencies
echo Installing dependencies from requirements.txt...
pip install -r requirements.txt
REM Check if .env file exists, if not, create it from .env.example
if not exist .env (
echo Creating .env from .env.example...
copy .env.example .env
)
echo Setup complete.
endlocal
pause