-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·77 lines (63 loc) · 2.13 KB
/
install.sh
File metadata and controls
executable file
·77 lines (63 loc) · 2.13 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
#!/bin/bash
# Claude Flow UI Installation Script
echo "🐝 Claude Flow UI Installer"
echo "═══════════════════════════════════════════"
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 or higher."
exit 1
fi
# Check Node.js version
NODE_VERSION=$(node -v | cut -d'v' -f2 | cut -d'.' -f1)
if [ "$NODE_VERSION" -lt 18 ]; then
echo "❌ Node.js version 18 or higher is required. Current version: $(node -v)"
exit 1
fi
echo "✅ Node.js $(node -v) detected"
echo ""
# Install dependencies
echo "📦 Installing dependencies..."
npm install
if [ $? -ne 0 ]; then
echo "❌ Failed to install dependencies"
exit 1
fi
echo ""
echo "✅ Dependencies installed successfully"
echo ""
# Build the project
echo "🔨 Building the project..."
npm run build
if [ $? -ne 0 ]; then
echo "❌ Build failed"
exit 1
fi
echo ""
echo "✅ Build completed successfully"
echo ""
# Make server.js executable
chmod +x server.js
# Create a global link (optional)
echo "🔗 Creating global command link..."
npm link
echo ""
echo "═══════════════════════════════════════════"
echo "✅ Claude Flow UI installed successfully!"
echo "═══════════════════════════════════════════"
echo ""
echo "Default Ports:"
echo " UI: http://localhost:11235"
echo " WebSocket: ws://localhost:11236"
echo ""
echo "Usage:"
echo " npm run claude-flow-ui # Start with default ports"
echo " npm run claude-flow-ui -- --port 8080 # UI on 8080, WebSocket on 8081"
echo " npx claude-flow-ui --port 3000 # UI on 3000, WebSocket on 3001"
echo ""
echo "With claude-flow:"
echo " npm run claude-flow-ui -- swarm --objective \"Your task\""
echo " npm run claude-flow-ui -- --port 8080 hive-mind --queen strategic"
echo ""
echo "The WebSocket port is automatically set to UI port + 1"
echo ""