Prerequisites
- Docker and Docker Compose installed
Quick Start
1. Configure Environment Variables
Copy the example environment file:.env file comes pre-configured with defaults for local development. Most values work out of the box, but you must fill in these required variables:
2. Start the Services
Service URLs
Once running, the following services are available:Makefile Commands
The project includes a comprehensive Makefile for common operations:Core Commands
Database Migrations
Example - Creating a new migration:
Architecture Overview
The local development stack includes:Services
- Control Plane API - FastAPI application serving the REST API
- Temporal Worker - Processes workflow executions
- Temporal - Workflow orchestration engine
- Temporal UI - Web interface for monitoring workflows
- PostgreSQL - Primary database
- Redis - Caching and session storage
Environment Variables Reference
Database Configuration
Redis Configuration
Temporal Configuration
API Configuration
External Services (Required)
Temporal Worker Configuration
Optional Services
Development Workflow
Viewing Logs
Follow logs from all services:Accessing the Database
Connect to PostgreSQL:Running Commands in the API Container
Restarting After Code Changes
The API container mounts the source code as a volume, so most changes are reflected immediately. For changes requiring a restart:Troubleshooting
Services Won’t Start
-
Check if ports are already in use:
-
Clean up and restart:
Database Connection Issues
-
Verify PostgreSQL is healthy:
-
Check logs:
Temporal Workflow Issues
- Access the Temporal UI at http://localhost:8080
- Check worker logs:
Next Steps
- Explore the API documentation
- Monitor workflows in the Temporal UI
- Review the API reference for available endpoints