-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·40 lines (34 loc) · 862 Bytes
/
setup.sh
File metadata and controls
executable file
·40 lines (34 loc) · 862 Bytes
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
#!/bin/bash
set -e
echo "🚀 Setting up Agent Frontend Demo..."
echo ""
# Check if agent-sdk is built
if [ ! -d "../agent-sdk/dist" ]; then
echo "📦 Building agent-sdk..."
cd ../agent-sdk
npm run build
cd ../agent-frontend-demo
fi
# Install dependencies
echo "📦 Installing frontend dependencies..."
npm install
# Check for .env file
if [ ! -f ".env" ]; then
echo ""
echo "⚠️ .env file not found!"
echo "📝 Creating .env from .env.example..."
cp .env.example .env
echo ""
echo "⚠️ IMPORTANT: Edit .env and add your private keys:"
echo " VITE_AGENT_A_PRIVATE_KEY=your_agent_a_private_key"
echo " VITE_AGENT_B_PRIVATE_KEY=your_agent_b_private_key"
echo ""
echo "Press Enter after adding your keys..."
read
fi
echo ""
echo "✅ Setup complete!"
echo ""
echo "To start the demo:"
echo " npm run dev"
echo ""