-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
38 lines (31 loc) · 1 KB
/
Copy pathsetup.sh
File metadata and controls
38 lines (31 loc) · 1 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
#!/bin/bash
# Setup script for Telegram Expense Tracker (Unix/macOS)
echo "Setting up Telegram Expense Tracker..."
# Create virtual environment
echo "Creating virtual environment..."
python3 -m venv venv
# Activate virtual environment
echo "Activating virtual environment..."
source venv/bin/activate
# Upgrade pip
echo "Upgrading pip..."
pip install --upgrade pip
# Install dependencies
echo "Installing dependencies..."
pip install -r requirements.txt
# Copy environment template
if [ ! -f .env ]; then
echo "Creating .env file from template..."
cp .env.example .env
echo "Please edit .env file with your configuration"
else
echo ".env file already exists, skipping..."
fi
echo ""
echo "Setup complete! 🎉"
echo ""
echo "Next steps:"
echo "1. Edit .env file with your Telegram bot token and Google credentials"
echo "2. Set up Google Sheets API and download credentials.json"
echo "3. Run 'source venv/bin/activate' to activate the virtual environment"
echo "4. Run 'python main.py' to start the bot"