Prerequisites
- Node.js installed
- Homebrew (for macOS)
- Access to the commenda-temporal-dsl repository
Step 1: Install Temporal CLI
Install the Temporal CLI using Homebrew:Step 2: Clone the repository
Step 3: Configure environment variables
Create a.env file in the project root with the following variables:
Step 4: Configure logical backend
In the Commenda Logical Backend, add these environment variables:Step 5: Start the services
Start the services in this order:1. Start Temporal server
http://localhost:8233. A temporal.db file is created in the root directory to store executions.
2. Start the Node.js server
3. Start the Temporal worker
Service architecture
Temporal UI
Access the Temporal UI athttp://localhost:8233 to:
- View workflow executions
- Inspect workflow history
- Debug execution issues
- Monitor worker activity
Updating environment variables
When modifying environment variables:
- Update them locally in
.env - Add to GitHub secrets
- Update
deploy-app.yamlfor deployments
Troubleshooting
Temporal server won’t start
- Check if port 8233 is available
- Verify Temporal CLI installation:
temporal --version - Check for existing
temporal.dbcorruption (delete and restart)
Worker not connecting
- Ensure Temporal server is running first
- Verify
TEMPORAL_TASK_QUEUEmatches across services - Check network connectivity between services
API key errors
- Double-check key matching between services
- Ensure no whitespace in key values
- Verify keys are properly exported in environment
Next steps
Data models
Understand the database schema
DSL types
Learn the workflow DSL type system