Hello World
This is the default project that is scaffolded out when you run npx @temporalio/create@latest ./myfolder
.
The Hello World Tutorial walks through the code in this sample.
Running this sample
- Make sure Temporal Server is running locally (see the quick install guide).
npm install
to install dependencies.npm run start.watch
to start the Worker.- In another shell,
npm run workflow
to run the Workflow Client.
The client should log the Workflow ID that is started, and you should see it reflected in Temporal Web UI.
Optionally, you can also uncomment the await handle.result()
, rerun, and see the client script return:
Hello, Temporal!