#!/bin/bash
# SMS API Server startup script

cd ~/projects/sms-campaign-manager

echo "🚀 Starting SMS API Server..."
echo "📱 Device IP: $(ifconfig 2>/dev/null | grep -A1 wlan0 | grep inet | awk '{print $2}' | cut -d: -f2)"
echo "🌐 API URL: http://$(ifconfig 2>/dev/null | grep -A1 wlan0 | grep inet | awk '{print $2}' | cut -d: -f2):5001"

# Start the server
python termux-sms-api-server.py
