-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
59 lines (50 loc) · 1.78 KB
/
Copy pathsetup.sh
File metadata and controls
59 lines (50 loc) · 1.78 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
# DeepResearch Agent v2.0 - Setup Script
set -e
echo "🚀 Setting up DeepResearch Agent v2.0..."
# Check prerequisites
echo "📋 Checking prerequisites..."
command -v node >/dev/null 2>&1 || { echo "❌ Node.js is required but not installed."; exit 1; }
command -v python3 >/dev/null 2>&1 || { echo "❌ Python 3.11+ is required but not installed."; exit 1; }
command -v docker >/dev/null 2>&1 || { echo "❌ Docker is required but not installed."; exit 1; }
echo "✅ Prerequisites check passed"
# Copy environment template
if [ ! -f .env ]; then
echo "📝 Creating .env file from template..."
cp .env.example .env
echo "✅ .env file created"
else
echo "⚠️ .env file already exists, skipping..."
fi
# Install Node.js dependencies
echo "📦 Installing Node.js dependencies..."
npm install
# Create Python virtual environment (optional, for local development)
if [ ! -d "src/backend/.venv" ]; then
echo "🐍 Creating Python virtual environment..."
cd src/backend
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cd ../..
echo "✅ Python virtual environment created"
else
echo "⚠️ Python virtual environment already exists, skipping..."
fi
# Build Docker sandbox image
echo "🐳 Building Docker sandbox image..."
docker build -f docker/sandbox-python.Dockerfile -t deepresearch-sandbox:latest .
echo ""
echo "✅ Setup complete!"
echo ""
echo "📚 Next steps:"
echo " 1. Start services: docker-compose up -d"
echo " 2. View architecture: npm run likec4"
echo " 3. Start backend: npm run backend"
echo " 4. Start desktop app: npm run dev"
echo ""
echo "🔗 URLs:"
echo " - API: http://localhost:8000"
echo " - API Docs: http://localhost:8000/docs"
echo " - Architecture: http://localhost:4040"
echo ""