Prerequisites
Before you begin, ensure you have the following installed:- Docker and Docker Compose plugin
- A
.envfile in the project root (use.env.exampleas a template)
Setup Steps
Prepare Environment File
Copy the example environment file and configure your secrets:Edit
.env with your actual credentials. See Environment Setup for detailed configuration options.Choose Your Mode
LatentGEO supports two Docker Compose modes:
- Standard Mode
- Development Mode
Best for: Production deployments, testing production builds
- Backend and worker without code mounts
- Frontend in production mode
- Server-side API URL:
http://backend:8000 - Browser API URL:
http://localhost:8000
Verify Services
Check that all services are running:Test the backend health endpoint:You should receive a successful response indicating the backend is ready.
Access the Platform
Open your browser and navigate to the following URLs:
- Frontend: http://localhost:3000
- Backend API: http://localhost:8000
- API Documentation: http://localhost:8000/docs
Real-time Features
LatentGEO includes sophisticated real-time monitoring out of the box:- The UI consumes
GET /api/v1/sse/audits/{audit_id}/progressvia a Next.js proxy - SSE uses Redis as the primary event source
- If Redis doesn’t deliver events, a controlled database fallback activates
- If SSE fails entirely, the frontend automatically falls back to polling
Troubleshooting SSE
If real-time updates aren’t working as expected:Check Redis Service
Check Redis Service
Validate that Redis is running and accessible:Look for connection errors or startup issues.
Check Backend SSE Logs
Check Backend SSE Logs
Monitor backend logs for SSE-related messages:Look for SSE connection attempts and any error messages.
Verify SSE Configuration
Verify SSE Configuration
Confirm these environment variables are set correctly:
SSE_SOURCE=redisSSE_FALLBACK_DB_INTERVAL_SECONDS=10SSE_HEARTBEAT_SECONDS=30SSE_RETRY_MS=5000
SSE vs Webhooks
LatentGEO uses two complementary real-time mechanisms:- SSE: Real-time dashboard updates showing audit progress as it happens
- Webhooks: External integrations accessible via
/api/v1/webhooks/*for automations
Next Steps
Environment Setup
Learn about all configuration options and environment variables
API Documentation
Explore the interactive API documentation (after starting services)