-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
38 lines (30 loc) · 1.02 KB
/
build.sh
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
#!/bin/bash
echo "🎭 Setting up Reddit Stream Console..."
# Check if python3 is installed
if ! command -v python3 &> /dev/null; then
echo "❌ Python 3 is not installed. Please install Python 3 and try again."
exit 1
fi
# Check if pip is installed
if ! command -v pip &> /dev/null; then
echo "❌ pip is not installed. Please install pip and try again."
exit 1
fi
# Create virtual environment if it doesn't exist
if [ ! -d "venv" ]; then
echo "🔨 Creating virtual environment..."
python3 -m venv venv
fi
# Activate virtual environment
echo "🔌 Activating virtual environment..."
source venv/bin/activate
# Install requirements
echo "📦 Installing dependencies..."
pip install -r requirements.txt
# Create .env if it doesn't exist
if [ ! -f ".env" ]; then
echo "📝 Creating .env file from template..."
cp .env.example .env
echo "⚠️ Don't forget to edit .env with your Reddit API credentials!"
fi
echo "✨ Setup complete! Run 'source venv/bin/activate' then 'python main.py' to start."