Create namespace
temporal operator namespace create ozkar-dev
add the required custom search attributes to the temporal cluster:
temporal operator search-attribute create --name ResourceId --type Keyword --namespace ozkar-dev && temporal operator search-attribute create --name PublicKey --type Keyword --namespace ozkar-dev
Install dependencies with npm install
.
Run temporal server start-dev --db-filename temporal.db
to start Temporal Server.
UI should be available at http://localhost:8233
The package.json
file contains scripts for running the client, the Worker, and tests.
- In a shell, run
npm run start.watch
to start the Worker and reload it when code changes. - In another shell, run
npm run workflow
to run the Workflow Client. - Run
npm run format
to format your code according to the rules in.prettierrc
. - Run
npm run lint
to lint your code according to the rules ineslintrc.js
. - Run
npm test
to run the tests.