-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_taskflow.sh
More file actions
executable file
·54 lines (43 loc) · 1.41 KB
/
setup_taskflow.sh
File metadata and controls
executable file
·54 lines (43 loc) · 1.41 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
#!/bin/bash
echo "🎯 Setting up TaskFlow - Self-Balancing Task Manager"
echo "=================================================="
# Create backup directory
echo "📁 Creating backup directory..."
mkdir -p ~/taskflow_backup
# Backup current data if exists
if [ -f "backend/tasks.db" ]; then
echo "💾 Backing up your existing data..."
cp backend/tasks.db ~/taskflow_backup/tasks_original.db
fi
# Make scripts executable
chmod +x start_app.sh stop_app.sh
# Setup virtual environment
echo "🐍 Setting up Python virtual environment..."
cd backend
if [ ! -d "venv" ]; then
python -m venv venv
fi
echo "📦 Installing Python dependencies..."
venv/bin/pip install -r requirements.txt
cd ..
# Make fish functions available
echo "🐟 Setting up Fish shell commands..."
mkdir -p ~/.config/fish/functions
# The fish functions are already created above
# Reload fish functions
echo "🔄 Reloading Fish shell functions..."
fish -c "source ~/.config/fish/functions/todaytask.fish"
fish -c "source ~/.config/fish/functions/stoptask.fish"
echo ""
echo "✅ TaskFlow setup complete!"
echo ""
echo "🚀 Usage:"
echo " • Type 'todaytask' to start TaskFlow"
echo " • Type 'stoptask' to stop TaskFlow"
echo ""
echo "🌐 TaskFlow will run on: http://127.0.0.1:8080"
echo "🔧 API available on: http://127.0.0.1:5000/api"
echo ""
echo "📚 Read README.md for detailed instructions"
echo ""
echo "🎯 Happy task balancing!"