Typescript Client for Netflix Conductor
npm install @inf-monkeys/conductor-javascriptThe conductor-javascript repository provides the client SDKs to build task workers in javascript/typescript.
Building the task workers in javascript mainly consists of the following steps:
1. Setup conductor-javascript package
2. Create and run task workers
3. Create workflows using code
* Get the package from npm
``shell`
npm i @io-orkes/conductor-javascript
or
`shell`
yarn add @io-orkes/conductor-javascript
`typescript
/**
* Application keys generated from the Application menu > Create Application
* then edit and create Access Keys
*
*/
import { OrkesApiConfig, orkesConductorClient } from "@io-orkes/conductor-javascript";
const config: Partial
keyId: "XXX", // optional
keySecret: "XXXX", // optional
refreshTokenInterval: 0, // optional (in milliseconds) defaults to 30 minutes (30 60 1000). 0 no refresh
serverUrl: "https://play.orkes.io/api",
};
orkesConductorClient(config).then(client => ..... );
``