v1.0 - Version stable: multi-PC, détection UI-DETR-1, 3 modes exécution
- Frontend v4 accessible sur réseau local (192.168.1.40) - Ports ouverts: 3002 (frontend), 5001 (backend), 5004 (dashboard) - Ollama GPU fonctionnel - Self-healing interactif - Dashboard confiance Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
60
visual_workflow_builder/test_backend.sh
Executable file
60
visual_workflow_builder/test_backend.sh
Executable file
@@ -0,0 +1,60 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Test Backend Only - Visual Workflow Builder
|
||||
|
||||
echo "🧪 Testing Visual Workflow Builder Backend..."
|
||||
echo ""
|
||||
|
||||
cd backend
|
||||
|
||||
# Check if venv exists
|
||||
if [ ! -d "venv" ]; then
|
||||
echo "Creating virtual environment..."
|
||||
python3 -m venv venv
|
||||
fi
|
||||
|
||||
# Activate venv
|
||||
source venv/bin/activate
|
||||
|
||||
# Install dependencies
|
||||
echo "Installing dependencies..."
|
||||
pip install -q -r requirements.txt
|
||||
|
||||
# Create .env if it doesn't exist
|
||||
if [ ! -f ".env" ]; then
|
||||
cp .env.example .env
|
||||
fi
|
||||
|
||||
# Start server in background
|
||||
echo "Starting backend server..."
|
||||
python app.py &
|
||||
SERVER_PID=$!
|
||||
|
||||
# Wait for server to start
|
||||
sleep 3
|
||||
|
||||
# Test health endpoint
|
||||
echo ""
|
||||
echo "Testing health endpoint..."
|
||||
RESPONSE=$(curl -s http://localhost:5001/health)
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "✅ Backend is running!"
|
||||
echo "Response: $RESPONSE"
|
||||
echo ""
|
||||
echo "Available endpoints:"
|
||||
echo " - http://localhost:5001/health"
|
||||
echo " - http://localhost:5001/api/workflows"
|
||||
echo " - http://localhost:5001/api/templates"
|
||||
echo " - http://localhost:5001/api/node-types"
|
||||
echo " - http://localhost:5001/api/executions"
|
||||
else
|
||||
echo "❌ Backend failed to start"
|
||||
fi
|
||||
|
||||
# Cleanup
|
||||
echo ""
|
||||
echo "Stopping server..."
|
||||
kill $SERVER_PID 2>/dev/null
|
||||
|
||||
echo "✅ Test complete!"
|
||||
Reference in New Issue
Block a user