-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·42 lines (33 loc) · 1.07 KB
/
setup.sh
File metadata and controls
executable file
·42 lines (33 loc) · 1.07 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
#!/bin/bash
# ─────────────────────────────────────────────
# API Runner — One-time setup
# ─────────────────────────────────────────────
set -e
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
cd "$SCRIPT_DIR"
echo ""
echo " ⚡ API Runner — Setup"
echo " ─────────────────────"
echo ""
# Create virtual environment
if [ ! -d "venv" ]; then
echo " Creating virtual environment..."
python3 -m venv venv
echo " ✓ Virtual environment created"
else
echo " ✓ Virtual environment already exists"
fi
# Activate and install deps
echo " Installing dependencies..."
source venv/bin/activate
pip install --upgrade pip -q
if [ -f "requirements.txt" ]; then
pip install -r requirements.txt -q
else
pip install flask flask-cors requests -q
fi
echo " ✓ Dependencies installed"
echo ""
echo " ✅ Setup complete!"
echo " Run: ./start.sh"
echo ""