nanoctl
CLI:
workflows/json/
directory by default. The generated workflow will have a basic structure that you can customize according to your needs.
name
: A unique identifier for the workflow.description
: A brief explanation of what the workflow does.version
: The version of the workflow (e.g., “1.0.0”).trigger
: Configuration for the event that starts the workflow (e.g., HTTP method and path).steps
: An ordered list of steps to execute in the workflow.nodes
: Configuration for each node used in the steps, including their inputs.@nanoservice-ts/api-call
node to fetch country data from an external API.workflows/toml/
workflows/yaml/
src/Nodes.ts
file:
@nanoservice-ts/api-call
: Makes HTTP requests to external APIs and services.@nanoservice-ts/if-else
: Provides conditional branching in workflows based on specified conditions."@nanoservice-ts/api-call"
) in the node
property of a step.
Install the examples? YES
), Blok includes several example workflows in different formats (JSON, TOML, YAML) to help you get started. These examples demonstrate various features and patterns, including:
workflows/json/
, workflows/toml/
, and workflows/yaml/
directories of your project.
countries-helper
, you can access it at: