This is the companion code for the tutorial Run your first Temporal Application with TypeScript.
- Make sure Temporal Server is running locally (see the quick install guide).
npm installto install dependencies.npm run workerto start the Worker.- In another shell,
npm run clientto run the Workflow Client.
The sample uses the Temporal SDK environment configuration API to connect to Temporal. With no configuration, it connects to localhost:7233 in the default Namespace. Set TEMPORAL_PROFILE to select a profile from your Temporal CLI configuration file; environment variables override profile values.
The Workflow will return:
Started Workflow workflow-OyIhuWr6X4opgqtYnhxuX with RunID a85055c8-3fce-466e-b4f6-8f66c16614e6
Transfer complete (transaction IDs: w1328871163, d0590412617)