Giter VIP home page Giter VIP logo

gabrielcstr / temporal_tctl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gustavocarneiroa/temporal_tctl

1.0 0.0 0.0 17 KB

The TCTL Temporal Helper is a utility designed to facilitate the submission of data to Temporal using the Temporal Command-Line Interface (TCTL). It streamlines the process of sending data to Temporal, making it easier to interact with Temporal workflows and activities.

License: MIT License

JavaScript 22.64% EJS 77.36%

temporal_tctl's Introduction

TCTL TEMPORAL HELPER

Description

The TCTL Temporal Helper is a utility designed to facilitate the submission of data to Temporal using the Temporal Command-Line Interface (TCTL). It streamlines the process of sending data to Temporal, making it easier to interact with Temporal workflows and activities.

Prerequisites

Before using this tool, make sure you have the following environment variables set up:

  • PORT: The port number to communicate with Temporal. (e.g., 3778)

  • TEMPORAL_CLIENT: Temporal client configuration, including connection details.

  • MAIN_PROCESS: Specify the main process or entry point for your Temporal workflows.

  • INITIAL_ARGUMENTS: Initial arguments to be passed when invoking Temporal, typically used for executing Temporal admin tools.

Docker

Docker integration is still under development.

Installation

To install the TCTL Temporal Helper, follow these steps:

  1. Clone the repository to your local machine:

    git clone https://github.com/gustavocarneiroa/temporal_tctl.git
  2. Navigate to the project directory:

    cd temporal_tctl
  3. Install the necessary dependencies:

    npm install

Usage

Once you have installed the TCTL Temporal Helper, you can use it as follows:

  1. Set the required environment variables (PORT, TEMPORAL_CLIENT, MAIN_PROCESS, INITIAL_ARGUMENTS) in your environment or in a .env file.

  2. Run the TCTL Temporal Helper :

    node .
  3. Access your localhost with your setted PORT (e.g, https://localhost:3333)

  4. Submit data from UI.

Example

Here's an example of how to use the TCTL Temporal Helper to interact with Temporal:

# Set the environment variables
export PORT=3778
export TEMPORAL_CLIENT="http://my_temporal_client:9999"
export MAIN_PROCESS=docker
export INITIAL_ARGUMENTS=exec,temporal-admin-tools

# Run TCTL Temporal Helper
node .

In this example, we first set the required environment variables and then use TCTL Temporal Helper to submit a workflow named my_workflow.

Contributing

We welcome contributions to the TCTL Temporal Helper project. Feel free to fork the repository, make your changes, and submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Special thanks to the Temporal community for their support and contributions to this project.

temporal_tctl's People

Stargazers

Gabriel Carlos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.