-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·73 lines (58 loc) · 1.56 KB
/
setup.sh
File metadata and controls
executable file
·73 lines (58 loc) · 1.56 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
#!/bin/bash
# AI Bid Writer - Setup Script
echo "🚀 Setting up AI Bid Writer..."
echo ""
# Check Python
if ! command -v python3 &> /dev/null; then
echo "❌ Python 3 is not installed. Please install Python 3.8 or higher."
exit 1
fi
echo "✅ Python found: $(python3 --version)"
# Check Node.js
if ! command -v node &> /dev/null; then
echo "❌ Node.js is not installed. Please install Node.js 16 or higher."
exit 1
fi
echo "✅ Node.js found: $(node --version)"
# Setup Backend
echo ""
echo "📦 Setting up backend..."
cd "$(dirname "$0")"
# Create virtual environment
if [ ! -d "venv" ]; then
python3 -m venv venv
echo "✅ Virtual environment created"
fi
# Activate virtual environment
source venv/bin/activate
# Install backend dependencies
pip install -r backend/requirements.txt
echo "✅ Backend dependencies installed"
# Setup environment file
if [ ! -f ".env" ]; then
cp .env.example .env
echo "✅ .env file created - PLEASE CONFIGURE YOUR API KEYS!"
echo ""
echo "⚠️ IMPORTANT: Edit .env file and add your OpenAI or Anthropic API key"
echo ""
else
echo "✅ .env file already exists"
fi
# Setup Frontend
echo ""
echo "📦 Setting up frontend..."
cd frontend
if [ ! -d "node_modules" ]; then
npm install
echo "✅ Frontend dependencies installed"
else
echo "✅ Frontend dependencies already installed"
fi
cd ..
echo ""
echo "✅ Setup complete!"
echo ""
echo "Next steps:"
echo "1. Edit .env file and add your OpenAI or Anthropic API key"
echo "2. Run './start.sh' to start the application"
echo ""