#!/bin/bash echo "🔍 SPARKNET Services Status Check" echo "==================================" echo "" # Check frontend echo "📱 Frontend (Port 3000):" if ss -tlnp | grep -q :3000; then echo " ✅ RUNNING" curl -s http://172.24.50.21:3000 | grep -q "SPARKNET" && echo " ✅ Responding correctly" else echo " ❌ NOT RUNNING" fi echo "" # Check backend echo "⚙️ Backend (Port 8000):" if ss -tlnp | grep -q :8000; then echo " ✅ RUNNING" if curl -s http://172.24.50.21:8000/api/health > /dev/null 2>&1; then echo " ✅ API responding" curl -s http://172.24.50.21:8000/api/health | grep -o '"status":"[^"]*"' else echo " ⏳ Starting up (loading AI models)..." fi else echo " ⏳ Initializing... (this takes 30-60 seconds)" echo " 💡 To view logs: screen -r sparknet-backend" fi echo "" echo "==================================" echo "" echo "🌐 Access URLs:" echo " Frontend: http://172.24.50.21:3000" echo " Backend: http://172.24.50.21:8000" echo " API Docs: http://172.24.50.21:8000/api/docs" echo ""