FastAPI-based API server that handles requests from Bubble frontend and coordinates with other services.
- RESTful API endpoints
- WebSocket streaming for real-time responses
- Authentication middleware
- Request validation and error handling
- Connection to AI orchestrator
GET /health- Health checkPOST /api/v1/analyze- Start business analysisGET /api/v1/status/{job_id}- Check analysis statusWS /ws/{session_id}- WebSocket for streaming results
DATABASE_URL- PostgreSQL connection stringREDIS_URL- Redis connection stringAI_ORCHESTRATOR_URL- Main AI service URLPORT- Server port (default: 8000)# Railway deployment trigger Fri Oct 10 16:25:01 UTC 2025