-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·40 lines (33 loc) · 1.02 KB
/
setup.sh
File metadata and controls
executable file
·40 lines (33 loc) · 1.02 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
#!/bin/bash
echo "🚗 CarPlay Dongle Manager - Quick Start"
echo "======================================="
echo ""
# Check if Python is installed
if ! command -v python3 &> /dev/null; then
echo "❌ Python 3 is not installed. Please install Python 3.8 or higher."
exit 1
fi
echo "✓ Python 3 found"
# Create virtual environment if it doesn't exist
if [ ! -d "venv" ]; then
echo "Creating virtual environment..."
python3 -m venv venv
echo "✓ Virtual environment created"
else
echo "✓ Virtual environment already exists"
fi
# Activate virtual environment
echo "Activating virtual environment..."
source venv/bin/activate
# Install dependencies
echo "Installing dependencies..."
pip install -r requirements.txt
echo ""
echo "✓ Setup complete!"
echo ""
echo "To start the server, run:"
echo " source venv/bin/activate"
echo " python app.py"
echo ""
echo "Then open https://localhost:5000 in Chrome, Edge, or Opera"
echo "⚠️ You'll need to accept the security warning for the self-signed certificate"