Sets up a new Temporal project with a preset skeleton.
Make sure to follow the getting started instructions.
--use-yarn- configure the project with
--temporal-version- use specified SDK version or
@latestif not provided.
The generated project consists of 4 sub-projects with typescript project references.
This code structure is required for enabling Workflows - which run in an isolated environment - to specify a custom
tsconfig.json than the rest of the project.
The created project comes with some helper package scripts.
npm run build- Compile Typescript
npm run build.watch- Watch files and compile on change
- Compile the project with one of the commands above
- Download, install, and run the Temporal server via docker-compose
- Start the worker using
npm start, or equivalently,
- In a new terminal, use the provided client to start a Workflow