JS wrapper for Nexus engine API
yarn add grindery-nexus-client
or
npm install grindery-nexus-client
On frontend, for example in a ReactJS app:
import GrinderyClient from 'grindery-nexus-client';
On backend, for example in a NodeJS app:
import { default as GrinderyClient } from 'grindery-nexus-client';
const client = new GrinderyClient('{user_authentication_token}');
const listWorkflows = async () => {
const workflows = await client.workflow.list();
};
There are some changes you need to do in your code in order to upgrade library to 1.x.x version.
Here are some examples:
const client = new GrinderyClient();
client.authenticate('{user_authentication_token}');
const client = new GrinderyClient('{user_authentication_token}');
const listWorkflows = async () => {
const workflows = await client.listWorkflows();
};
const listWorkflows = async () => {
const workflows = await client.workflow.list();
};
const listWorkspaces = async () => {
const workspaces = await client.listWorkspaces();
};
const listWorkflows = async () => {
const workspaces = await client.workspace.list();
};
See full documentation in the DOCUMENTATION.md file.
See DEVELOPMENT.md file.
MIT