Four exercises for learning the Temporal TypeScript SDK. Each exercise builds on the previous one.
- Node.js 18+
- Temporal CLI
| # | Topic | Concept |
|---|---|---|
| 1 | Converting to Temporal | Workflows, Activities, Workers |
| 2 | Child Workflows | Decomposing workflows into sub-workflows |
| 3 | Parallel Activities | Fan-out with Promise.all |
| 4 | Local Activities | Cost optimization for lightweight tasks |
Each exercise has an exercise/ and a solution/ directory. Start in exercise/.
1. Start the Temporal dev server (one-time, leave running):
temporal server start-dev2. Install dependencies:
cd <exercise_dir>
npm install3. Start the worker (Terminal 2):
npm run worker4. Run the starter (Terminal 3):
npm run starter5. Open the Temporal UI:
Navigate to http://localhost:8233 to inspect workflow executions.
All exercises use an RFI (Request for Information) domain — a common construction project management workflow involving validation, reviewer assignment, and stakeholder notification.