-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
83 lines (69 loc) · 1.72 KB
/
setup.bat
File metadata and controls
83 lines (69 loc) · 1.72 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
74
75
76
77
78
79
80
81
82
83
@echo off
title ThisProjectDoesNotExist Setup
echo 🚀 Setting up ThisProjectDoesNotExist...
echo.
REM Check if Node.js is installed
node --version >nul 2>&1
if errorlevel 1 (
echo ❌ Node.js is not installed. Please install Node.js 18+ first.
echo Visit: https://nodejs.org/
pause
exit /b 1
)
echo ✅ Node.js found
node --version
REM Check if npm is installed
npm --version >nul 2>&1
if errorlevel 1 (
echo ❌ npm is not installed. Please install npm first.
pause
exit /b 1
)
echo ✅ npm found
npm --version
echo.
REM Install frontend dependencies
echo 📦 Installing frontend dependencies...
call npm install
if errorlevel 1 (
echo ❌ Failed to install frontend dependencies
pause
exit /b 1
)
echo ✅ Frontend dependencies installed
echo.
REM Install backend dependencies
echo 📦 Installing backend dependencies...
cd backend
call npm install
if errorlevel 1 (
echo ❌ Failed to install backend dependencies
pause
exit /b 1
)
echo ✅ Backend dependencies installed
echo.
REM Create .env file from example
if not exist .env (
echo 📝 Creating .env file from example...
copy .env.example .env >nul
echo ✅ .env file created
) else (
echo ⚠️ .env file already exists, skipping...
)
cd ..
echo.
echo 🎉 Setup complete!
echo.
echo 📋 Next steps:
echo 1. Get your Gemini API key from: https://makersuite.google.com/app/apikey
echo 2. Edit backend\.env and replace the placeholder API key
echo 3. Start the backend: cd backend ^&^& npm run dev
echo 4. Start the frontend: npm run dev
echo 5. Visit http://localhost:5173 in your browser
echo.
echo 🔒 Security reminder: Never commit your actual API key to git!
echo.
echo Happy creating! ✨
echo.
pause