#!/bin/bash # ColPali Hono Proxy Quick Start Script echo "🚀 ColPali Hono Proxy Setup" echo "==========================" # Check if .env exists if [ ! -f .env ]; then echo "📝 Creating .env file from template..." cp .env.example .env echo "⚠️ Please update .env with your configuration" echo "" fi # Install dependencies if needed if [ ! -d "node_modules" ]; then echo "📦 Installing dependencies..." npm install echo "" fi # Check if backend is running echo "🔍 Checking backend connection..." BACKEND_URL=${BACKEND_URL:-http://localhost:7860} if curl -f -s "$BACKEND_URL/health" > /dev/null; then echo "✅ Backend is reachable at $BACKEND_URL" else echo "⚠️ Warning: Backend at $BACKEND_URL is not responding" echo " Make sure your ColPali backend is running" fi echo "" # Start the server echo "🚀 Starting Hono proxy server..." echo " API URL: http://localhost:4000/api" echo " Health: http://localhost:4000/health" echo "" npm run dev