0.4.6 • Published 1 year ago

@busywork/core v0.4.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

busywork-core

A core package for Busywork providing Temporal client helpers.

Installation

npm install busywork-core

Usage

Temporal Client

import { getTemporalClient } from 'busywork-core/temporal';

// Set up environment variables
process.env.TEMPORAL_ADDRESS = 'your-temporal-address';
process.env.TEMPORAL_NAMESPACE = 'your-namespace';
process.env.TEMPORAL_API_KEY = 'your-api-key';

// Get Temporal client
const client = await getTemporalClient();

// Use the client to interact with Temporal
// ...

Environment Variables

The Temporal client requires the following environment variables:

  • TEMPORAL_ADDRESS: The address of your Temporal server
  • TEMPORAL_NAMESPACE: Your Temporal namespace
  • TEMPORAL_API_KEY: Your Temporal API key

For local development, you can set NODE_ENV=dev and USE_DEV_SERVER=true to use a local Temporal server.

Development

# Install dependencies
npm install

# Build the package
npm run build
0.4.6

1 year ago

0.4.5

1 year ago

0.4.4

1 year ago

0.4.3

1 year ago

0.4.2

1 year ago

0.4.1

1 year ago

0.4.0

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.13

1 year ago