-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·72 lines (65 loc) · 1.72 KB
/
setup.sh
File metadata and controls
executable file
·72 lines (65 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
#!/bin/bash
# Tool Architect Setup Script
echo "=========================================="
echo "Tool Architect - Setup"
echo "=========================================="
echo ""
# Check Python version
echo "1. Checking Python version..."
python3 --version
if [ $? -ne 0 ]; then
echo "❌ Error: Python 3 not found. Please install Python 3.8 or higher."
exit 1
fi
echo "✓ Python found"
echo ""
# Install dependencies
echo "2. Installing dependencies..."
pip3 install -r requirements.txt
if [ $? -ne 0 ]; then
echo "❌ Error: Failed to install dependencies"
exit 1
fi
echo "✓ Dependencies installed"
echo ""
# Check for API key
echo "3. Checking for ANTHROPIC_API_KEY..."
if [ -z "$ANTHROPIC_API_KEY" ]; then
echo "⚠️ ANTHROPIC_API_KEY not set"
echo ""
echo "To use the Tool Architect, you need an Anthropic API key."
echo ""
echo "Follow these steps:"
echo " 1. Go to: https://console.anthropic.com/"
echo " 2. Create an account or sign in"
echo " 3. Generate an API key"
echo " 4. Set it in your environment:"
echo ""
echo " export ANTHROPIC_API_KEY='your-key-here'"
echo ""
echo " 5. Run this setup script again"
echo ""
exit 1
else
echo "✓ ANTHROPIC_API_KEY found"
fi
echo ""
# Run test
echo "4. Running system test..."
python3 test_architect.py
if [ $? -ne 0 ]; then
echo "❌ Test failed"
exit 1
fi
echo ""
echo "=========================================="
echo "✅ Setup Complete!"
echo "=========================================="
echo ""
echo "To generate a roadmap:"
echo " python3 demo.py"
echo ""
echo "Or with your own idea:"
echo " python3 demo.py 'Your product idea here'"
echo ""
echo "=========================================="