#!/usr/bin/env python3 import requests import json import sys try: # Test health check print("Testing health check endpoint...") response = requests.get('http://localhost:3000/', timeout=2) if response.status_code == 200: data = response.json() print("✅ Server is running!") print("📊 Response:") print(json.dumps(data, indent=2)) else: print(f"❌ Error: {response.status_code}") except requests.exceptions.ConnectionError: print("❌ Could not connect to server at http://localhost:3000") print("💡 Tip: Start the server with: python3 server.py") sys.exit(1) except Exception as e: print(f"❌ Error: {str(e)}") sys.exit(1)