-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
75 lines (60 loc) · 1.76 KB
/
setup.sh
File metadata and controls
75 lines (60 loc) · 1.76 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
#!/bin/bash
# ThisProjectDoesNotExist Setup Script
# This script helps you set up the project quickly
echo "🚀 Setting up ThisProjectDoesNotExist..."
echo ""
# Check if Node.js is installed
if ! command -v node &> /dev/null; then
echo "❌ Node.js is not installed. Please install Node.js 18+ first."
echo " Visit: https://nodejs.org/"
exit 1
fi
echo "✅ Node.js found: $(node --version)"
# Check if npm is installed
if ! command -v npm &> /dev/null; then
echo "❌ npm is not installed. Please install npm first."
exit 1
fi
echo "✅ npm found: $(npm --version)"
echo ""
# Install frontend dependencies
echo "📦 Installing frontend dependencies..."
npm install
if [ $? -ne 0 ]; then
echo "❌ Failed to install frontend dependencies"
exit 1
fi
echo "✅ Frontend dependencies installed"
echo ""
# Install backend dependencies
echo "📦 Installing backend dependencies..."
cd backend
npm install
if [ $? -ne 0 ]; then
echo "❌ Failed to install backend dependencies"
exit 1
fi
echo "✅ Backend dependencies installed"
echo ""
# Create .env file from example
if [ ! -f .env ]; then
echo "📝 Creating .env file from example..."
cp .env.example .env
echo "✅ .env file created"
else
echo "⚠️ .env file already exists, skipping..."
fi
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! ✨"