-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquickstart.sh
More file actions
executable file
·59 lines (52 loc) · 1.23 KB
/
quickstart.sh
File metadata and controls
executable file
·59 lines (52 loc) · 1.23 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
#!/bin/bash
echo "🦞 Clawban Quick Start"
echo "====================="
echo ""
# Check if config exists
if [ ! -f "config.json" ]; then
echo "📝 Creating config.json from example..."
if [ -f "config.example.json" ]; then
cp config.example.json config.json
echo "✅ config.json created"
echo ""
echo "⚠️ Please edit config.json to configure your agents:"
echo " nano config.json"
echo ""
echo " Or continue with example configuration (3 agents)"
read -p "Press Enter to continue..."
else
echo "❌ config.example.json not found"
exit 1
fi
fi
# Check if board.json exists
if [ ! -f "board.json" ]; then
echo "📋 Creating empty board..."
cat > board.json << 'EOF'
{
"nextId": 1,
"tasks": []
}
EOF
echo "✅ board.json created"
fi
# Check if activity.jsonl exists
if [ ! -f "activity.jsonl" ]; then
echo "📊 Creating activity log..."
touch activity.jsonl
echo "✅ activity.jsonl created"
fi
# Check Node.js
if ! command -v node &> /dev/null; then
echo "❌ Node.js not found"
echo " Install Node.js from https://nodejs.org"
exit 1
fi
echo ""
echo "✅ Setup complete!"
echo ""
echo "🚀 Starting dashboard..."
echo ""
# Start server
cd web
node server-simple.js