Prerequisites
Before starting, ensure you have the following installed:- Docker Desktop (v20.10+)
- Docker Compose plugin (v2.0+)
- Git for cloning the repository
Verify Docker is running:
docker --version and docker compose versionClone and Configure
Create environment file
Copy the example environment file and configure your credentials:Required variables:
Start development environment
Launch all services with hot reload enabled:This starts:
- Backend (FastAPI) on port 8000 with auto-reload
- Frontend (Next.js) on port 3000 with hot module replacement
- Worker (Celery) for background tasks
- Redis for caching and task queue
Development Mode Features
Thedocker-compose.dev.yml configuration includes:
Hot Reload
Code Mounting
- Backend code is mounted from
./backendto/app - Frontend code is mounted from
./frontendto/app - Changes are reflected immediately without rebuilding
Resource Limits
Optimized for local development:Accessing Services
Local URLs
| Service | URL | Description |
|---|---|---|
| Frontend | http://localhost:3000 | Next.js application |
| Backend API | http://localhost:8000 | FastAPI server |
| API Docs | http://localhost:8000/docs | Swagger UI |
| ReDoc | http://localhost:8000/redoc | Alternative API docs |
| OpenAPI Schema | http://localhost:8000/openapi.json | OpenAPI specification |
Database Connection
Connect to Supabase PostgreSQL using theDATABASE_URL from your .env file:
Redis CLI
Access Redis for debugging:SSE (Server-Sent Events) Configuration
LatentGEO uses SSE for real-time audit progress updates:The frontend consumes SSE via
/api/v1/sse/audits/{audit_id}/progress through a Next.js proxy route.Troubleshooting
Port Conflicts
If port 5432, 6379, 8000, or 3000 are already in use:Logs
View logs for specific services:Reset Everything
Clean slate:Database Connection Issues
If you see connection errors:Next Steps
Run Tests
Learn how to run the test suite
Backend Services
Explore the service layer architecture
Frontend Components
Build UI with Radix components
Contributing
Contribution guidelines and workflow