Spaces:
Running
Running
# 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 |