-
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
/
setup.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 ""