-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·50 lines (40 loc) · 1.13 KB
/
Copy pathsetup.sh
File metadata and controls
executable file
·50 lines (40 loc) · 1.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
#!/bin/bash
echo "Setting up IdeaGraph Studio..."
# Check if Ollama is installed
if ! command -v ollama &> /dev/null; then
echo "Error: Ollama is not installed. Please install Ollama first."
echo "Visit: https://ollama.ai"
exit 1
fi
# Check if Docker is running
if ! docker info &> /dev/null; then
echo "Error: Docker is not running. Please start Docker first."
exit 1
fi
# Pull required Ollama models
echo "Pulling Ollama models..."
ollama pull qwen2.5:7b-instruct
ollama pull qwen3-embedding:4b
# Start Neo4j
echo "Starting Neo4j..."
docker-compose up -d
# Wait for Neo4j to be ready
echo "Waiting for Neo4j to be ready..."
sleep 10
# Install backend dependencies
echo "Installing backend dependencies..."
cd backend
pip install -r requirements.txt
cd ..
# Install frontend dependencies
echo "Installing frontend dependencies..."
cd frontend
npm install
cd ..
echo "Setup complete!"
echo ""
echo "To start the application:"
echo "1. Start the backend: cd backend && uvicorn main:app --reload"
echo "2. Start the frontend: cd frontend && npm start"
echo ""
echo "The application will be available at http://localhost:3000"