An open API service indexing awesome lists of open source software.

https://github.com/conductor-sdk/typescript-examples

Typescript examples using conductor sdk
https://github.com/conductor-sdk/typescript-examples

javascript microservices typescript

Last synced: 5 months ago
JSON representation

Typescript examples using conductor sdk

Awesome Lists containing this project

README

          

# Typescript Example
This repo contains two examples. One is a fraud analisis worker for a banking workflow.
The other is a full workflow as code example.

Examples:
1. [Banking Example](src/banking/README.md)
2. [User Info Example](src/emailsms/README.md)

### Running Example

install dependencies using `yarn`

> **Note**
Obtain KEY and SECRET from the playground or your Conductor server. [Quick tutorial for playground](https://orkes.io/content/docs/getting-started/concepts/access-control-applications#access-keys)

Export variables
```shell
export KEY=
export SECRET=
export SERVER_URL=https://play.orkes.io/api
```

Run the main programs using ts-node
```shell
ts-node src/banking/main.ts
ts-node src/emailandsms/main.ts
```

### The Files that run the workflow and worker:

1. [Banking Example](src/banking/main.ts)
2. [User Info Example](src/emailsms/main.ts)