Skip to content

Latest commit

 

History

History
46 lines (28 loc) · 1.61 KB

README.md

File metadata and controls

46 lines (28 loc) · 1.61 KB

Hatchet Typescript Quickstart

The following is a template repo to get started with the Hatchet Typescript SDK. It includes instructions for getting started with Hatchet cloud along with a locally running instance of Hatchet.

Cloud Version

Navigate to your settings tab in the Hatchet dashboard. You should see a section called "API Keys". Click "Create API Key", input a name for the key and copy the key. Then copy the environment variable:

HATCHET_CLIENT_TOKEN="<token>"

You will need this in the examples.

Next steps: see Running Workflows to trigger your first Hatchet workflow.

Local Version

Run the following command to start the Hatchet instance:

docker compose up

This will start a Hatchet instance on port 8080. You should be able to navigate to localhost:8080 and use the following credentials to log in:

Email: admin@example.com
Password: Admin123!!

Next, navigate to your settings tab in the Hatchet dashboard. You should see a section called "API Keys". Click "Create API Key", input a name for the key and copy the key. Then copy the environment variable:

HATCHET_CLIENT_TOKEN="<token>"

You will need this in the examples.

Next steps: see Running Workflows to trigger your first Hatchet workflow.

Running Workflows

Simple Examples: stand-alone workers showing off core functionality of hatchet

To get started, navigate to the respective example directories for further README instructions and refer to the Documentation