#!/bin/bash
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
cd "$SCRIPT_DIR"

source .venv/bin/activate

python3 -c "from app import init_db; init_db()"

echo "Website URL: http://127.0.0.1:5000"
echo "Mobile/LAN:  http://YOUR-LAPTOP-IP:5000"
echo "Admin URL:   http://127.0.0.1:5000/admin"
echo ""

python3 app.py
