-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
56 lines (48 loc) Β· 1.18 KB
/
setup.bat
File metadata and controls
56 lines (48 loc) Β· 1.18 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
@echo off
echo π Setting up GPT Fine-Tuning Platform...
echo π Checking environment dependencies...
python --version >nul 2>&1
if errorlevel 1 (
echo β Python is not installed or not added to PATH
pause
exit /b 1
)
node --version >nul 2>&1
if errorlevel 1 (
echo β Node.js is not installed or not added to PATH
pause
exit /b 1
)
npm --version >nul 2>&1
if errorlevel 1 (
echo β npm is not installed or not added to PATH
pause
exit /b 1
)
echo β
Environment check passed
echo βοΈ Setting up environment variables...
if not exist .env (
copy env.example .env
echo π Created .env file, please edit it and add your OpenAI API key
) else (
echo β
.env file already exists
)
echo π¦ Installing backend dependencies...
pip install -r requirements.txt
echo π¦ Installing frontend dependencies...
cd frontend
npm install
cd ..
echo.
echo π Setup completed!
echo.
echo π Next steps:
echo 1. Edit .env file and add your OPENAI_API_KEY
echo 2. Start backend: python app.py
echo 3. Start frontend: cd frontend ^&^& npm start
echo 4. Visit http://localhost:3000
echo.
echo π³ Or use Docker:
echo docker-compose up -d
echo.
pause