-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·100 lines (88 loc) · 2.67 KB
/
setup.sh
File metadata and controls
executable file
·100 lines (88 loc) · 2.67 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#!/bin/bash
# YC Cofounder Matcher - Quick Setup Script
# This script automates the initial setup process
set -e # Exit on error
echo "=================================="
echo "YC Cofounder Matcher - Setup"
echo "=================================="
echo ""
# Check Python version
echo "Checking Python version..."
python_version=$(python3 --version 2>&1 | awk '{print $2}')
echo "Found Python $python_version"
# Check if Python 3.9+
required_version="3.9"
if ! python3 -c "import sys; exit(0 if sys.version_info >= (3, 9) else 1)"; then
echo "❌ Error: Python 3.9 or higher required"
echo " Current version: $python_version"
exit 1
fi
echo "✅ Python version OK"
echo ""
# Create virtual environment
echo "Creating virtual environment..."
if [ -d "venv" ]; then
echo "⚠️ venv already exists, skipping creation"
else
python3 -m venv venv
echo "✅ Virtual environment created"
fi
echo ""
# Activate virtual environment
echo "Activating virtual environment..."
source venv/bin/activate
echo "✅ Virtual environment activated"
echo ""
# Install Python dependencies
echo "Installing Python dependencies..."
pip install --upgrade pip > /dev/null 2>&1
pip install -r requirements.txt
echo "✅ Python dependencies installed"
echo ""
# Install Playwright browsers
echo "Installing Playwright Firefox (more stable on macOS)..."
playwright install firefox
echo "✅ Playwright Firefox installed"
echo ""
# Create .env file if it doesn't exist
if [ -f ".env" ]; then
echo "⚠️ .env file already exists, skipping creation"
else
echo "Creating .env file from template..."
cp .env.example .env
echo "✅ .env file created"
echo ""
echo "⚠️ IMPORTANT: Edit .env and add your Gemini API key!"
echo " Get your key at: https://aistudio.google.com/app/apikey"
fi
echo ""
# Create logs directory
mkdir -p logs
echo "✅ Logs directory created"
echo ""
echo "=================================="
echo "Setup Complete! 🎉"
echo "=================================="
echo ""
echo "Next steps:"
echo ""
echo "1. Edit .env and add your GEMINI_API_KEY"
echo " Get it at: https://aistudio.google.com/app/apikey"
echo ""
echo "2. Customize your prompts:"
echo " - prompts/evaluation.txt (scoring criteria)"
echo " - prompts/invitation.txt (message template)"
echo ""
echo "3. Authenticate with YC Startup School:"
echo " python main.py --auth"
echo ""
echo "4. Run your first test:"
echo " python main.py --dry-run --max-invites 3"
echo ""
echo "5. Start matching:"
echo " python main.py --interactive --max-invites 5"
echo ""
echo "For detailed instructions, see README.md"
echo ""
echo "⚠️ Remember: This tool may violate YC TOS. Use responsibly!"
echo ""