This sample shows how to execute Activities directly from a Temporal Client, without a Workflow.
temporal server start-devto start Temporal Server.npm installto install dependencies.npm run start.watchto start the Worker.- In another shell,
npm run executeto execute the activity in different ways.
Example output:
Hello, Temporal!
Hello, World!
Hello, Temporal!
Oops! name must be a string
Afterwards, you can run npm run list to see a listing of activity executions.