-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquickstart.sh
More file actions
executable file
·72 lines (63 loc) · 1.77 KB
/
quickstart.sh
File metadata and controls
executable file
·72 lines (63 loc) · 1.77 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
63
64
65
66
67
68
69
70
71
72
#!/bin/bash
# Quick Start Script for Dual-Platform Video Uploader
# NoblePort Systems
set -e
echo "=========================================="
echo " Dual-Platform Video Uploader"
echo " NoblePort Systems - Quick Start"
echo "=========================================="
echo ""
# Check Python version
echo "Checking Python version..."
python_version=$(python3 --version 2>&1 | awk '{print $2}')
echo "Python version: $python_version"
# Check if virtual environment exists
if [ ! -d "venv" ]; then
echo ""
echo "Creating virtual environment..."
python3 -m venv venv
echo "Virtual environment created!"
fi
# Activate virtual environment
echo ""
echo "Activating virtual environment..."
source venv/bin/activate
# Install dependencies
echo ""
echo "Installing dependencies..."
pip install --upgrade pip
pip install -r requirements.txt
# Create .env if it doesn't exist
if [ ! -f ".env" ]; then
echo ""
echo "Creating .env file from template..."
cp .env.example .env
echo "Please edit .env file with your credentials!"
fi
# Create uploads directory
mkdir -p uploads
echo ""
echo "=========================================="
echo " Setup Complete!"
echo "=========================================="
echo ""
echo "Next steps:"
echo ""
echo "1. For YouTube uploads:"
echo " - Download client_secret.json from Google Cloud Console"
echo " - Place it in this directory"
echo ""
echo "2. For DTube uploads:"
echo " - Install IPFS: https://docs.ipfs.io/install/"
echo " - Run: ipfs init"
echo " - Run: ipfs daemon"
echo ""
echo "3. Start the web application:"
echo " python app.py"
echo ""
echo "4. Or use the CLI:"
echo " python cli.py --help"
echo ""
echo "For detailed setup instructions, see SETUP_GUIDE.md"
echo ""
echo "=========================================="