-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
73 lines (63 loc) · 1.63 KB
/
setup.bat
File metadata and controls
73 lines (63 loc) · 1.63 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
@echo off
REM StudyBuddy Setup Script for Windows
REM This script helps set up the StudyBuddy environment
echo ========================================
echo StudyBuddy AI Setup Script
echo ========================================
echo.
REM Check if Python is installed
python --version >nul 2>&1
if errorlevel 1 (
echo ❌ Python is not installed or not in PATH
echo Please install Python 3.8+ from https://python.org
pause
exit /b 1
)
echo ✅ Python is installed
python --version
REM Check if pip is available
pip --version >nul 2>&1
if errorlevel 1 (
echo ❌ pip is not available
echo Please install pip
pause
exit /b 1
)
echo ✅ pip is available
REM Install requirements
echo.
echo 📦 Installing Python dependencies...
pip install -r requirements.txt
if errorlevel 1 (
echo ❌ Failed to install requirements
pause
exit /b 1
)
echo ✅ Dependencies installed successfully
REM Check for .env file
if not exist ".env" (
echo.
echo ⚠️ .env file not found
echo Creating .env template...
echo GOOGLE_API_KEY=your_gemini_api_key_here > .env
echo.
echo 📝 Please edit .env file and add your Google Gemini API key
echo You can get an API key from: https://makersuite.google.com/app/apikey
)
echo.
echo 🎉 Setup completed successfully!
echo.
echo 🚀 To start StudyBuddy:
echo.
echo 1. Start the backend server:
echo cd backend
echo python app.py
echo.
echo 2. In a new terminal, start the frontend:
echo streamlit run frontend/streamlit_app.py
echo.
echo 3. Open your browser to: http://localhost:8501
echo.
echo 📖 For more information, see README.md
echo.
pause