-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·81 lines (70 loc) · 2.17 KB
/
Copy pathsetup.sh
File metadata and controls
executable file
·81 lines (70 loc) · 2.17 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
#!/bin/bash
# Voice Vibe Coding - Automated Setup Script
set -e # Exit on error
echo "🎙️ Voice Vibe Coding - Setup Script"
echo "=================================="
# Check Python version
echo "Checking Python version..."
python_version=$(python3 --version 2>&1 | grep -oP '\d+\.\d+')
if (( $(echo "$python_version < 3.10" | bc -l) )); then
echo "❌ Python 3.10+ required (found $python_version)"
exit 1
fi
echo "✅ Python $python_version detected"
# Check Node.js
echo "Checking Node.js..."
if ! command -v node &> /dev/null; then
echo "❌ Node.js not found (required for Playwright MCP)"
echo " Install from: https://nodejs.org/"
exit 1
fi
echo "✅ Node.js $(node --version) detected"
# Create virtual environment
echo "Creating virtual environment..."
python3 -m venv venv
echo "✅ Virtual environment created"
# Activate and install dependencies
echo "Installing Python dependencies..."
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
echo "✅ Dependencies installed"
# Install Playwright MCP
echo "Installing Playwright MCP..."
npx -y @playwright/mcp@latest
echo "✅ Playwright MCP installed"
# Create .env from template
if [ ! -f .env ]; then
echo "Creating .env file..."
cp .env.example .env
echo "✅ .env created - EDIT WITH YOUR API KEYS"
else
echo "⚠️ .env already exists, skipping"
fi
# Create necessary directories
mkdir -p projects/.temp
mkdir -p logs
mkdir -p scripts
echo "✅ Directories created"
# Check Claude CLI authentication
echo "Checking Claude CLI..."
if command -v claude &> /dev/null; then
if claude config | grep -q "authenticated"; then
echo "✅ Claude CLI authenticated"
else
echo "⚠️ Claude CLI not authenticated"
echo " Run: claude login"
fi
else
echo "⚠️ Claude CLI not found"
echo " Install: brew install claude"
fi
echo ""
echo "🎉 Setup Complete!"
echo ""
echo "Next Steps:"
echo "1. Edit .env file with your API keys"
echo "2. Validate credentials: source venv/bin/activate && python scripts/validate_credentials.py"
echo "3. Start everything: python run.py"
echo ""
echo "See README Quick Start section for details"