Skip to content

Example workflows and setup instructions to use Hatchet with Typescript projects

Notifications You must be signed in to change notification settings

hatchet-dev/hatchet-typescript-quickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hatchet First Workflow Example

This is an example project demonstrating how to use Hatchet with Typescript.

Prerequisites

Before running this project, make sure you have the following:

  1. Node V16 or higher

Setup

  1. Set the required environment variable HATCHET_CLIENT_TOKEN created in the Getting Started Guide.
export HATCHET_CLIENT_TOKEN=<token>
  1. Run the following command to install the project dependencies:

    npm install

Running an example

  1. Start a Hatchet worker by running the following command:
npm run start
  1. To run the example workflow, open a new terminal and run the following command:
npm run run:simple

This will trigger the workflow on the worker running in the first terminal and print the output to the the second terminal.

About

Example workflows and setup instructions to use Hatchet with Typescript projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published