- TAPO_PASSWORD in .env korrigiert (Agent045) - Unnötige Verzeichnisse entfernt (node_modules, archiv in backend/, etc.) - .gitignore erstellt um .env-Dateien zu schützen - Projektstruktur bereinigt (von 1.5MB auf 186KB reduziert) - Flask Web UI vollständig funktionsfähig 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
23 lines
481 B
Bash
23 lines
481 B
Bash
#!/bin/bash
|
|
|
|
# Initialize virtual environment if it doesn't exist
|
|
if [ ! -d "venv" ]; then
|
|
echo "Creating virtual environment..."
|
|
python3 -m venv venv
|
|
fi
|
|
|
|
# Activate virtual environment
|
|
source venv/bin/activate
|
|
|
|
# Install dependencies
|
|
echo "Installing dependencies..."
|
|
pip install -r requirements.txt
|
|
|
|
# Initialize database
|
|
echo "Initializing database..."
|
|
flask db upgrade
|
|
python scripts/init_db.py
|
|
|
|
# Run the application
|
|
echo "Starting Flask application..."
|
|
python wsgi.py |