-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
62 lines (51 loc) · 1.35 KB
/
Copy pathinstall.sh
File metadata and controls
62 lines (51 loc) · 1.35 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
60
61
62
#!/bin/bash
echo "🧠 Cortex - Installation Script"
echo "================================"
# Check prerequisites
echo "Checking prerequisites..."
if ! command -v node &> /dev/null; then
echo "❌ Node.js not found. Please install Node.js 18+"
exit 1
fi
if ! command -v python3 &> /dev/null; then
echo "❌ Python3 not found. Please install Python 3.11+"
exit 1
fi
echo "✅ Node.js $(node --version)"
echo "✅ Python $(python3 --version)"
# Install root dependencies
echo ""
echo "📦 Installing root dependencies..."
npm install
# Install Electron dependencies
echo ""
echo "📦 Installing Electron dependencies..."
cd electron && npm install && cd ..
# Install Frontend dependencies
echo ""
echo "📦 Installing Frontend dependencies..."
cd frontend && npm install && cd ..
# Setup Python virtual environment
echo ""
echo "🐍 Setting up Python environment..."
cd backend
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
deactivate
cd ..
# Create .env if it doesn't exist
if [ ! -f .env ]; then
echo ""
echo "📝 Creating .env file..."
cp .env.example .env
echo "⚠️ Please edit .env and add your GEMINI_API_KEY"
fi
echo ""
echo "✅ Installation complete!"
echo ""
echo "Next steps:"
echo "1. Edit .env and add your GEMINI_API_KEY"
echo "2. Run: npm run dev"
echo ""