1. Create a project
We will use runnerty-cli to create our first project.
- Let's create the project, execute this command in your terminal.
note
if desired, we can also install runnerty-cli
The following contents will be created in your current directory.
- Run
npm start
.
ππ Congratulations, you have just made your first Runnerty project!
You can know connect to Runnerty Platform.
This workflow executes an echo
command every minute leaving the response in a log file. The terminal where we run the project is also notified of the beginning and end of the chain.
#
Details of the example projectpackage.json
#
We find this dependencies:
trigger-schedule
: Trigger for planned executions using expressions CRON (more about triggers).executor-shell
: Executor shell launches a command in a new process and we can pass that command any arguments (more about executors).notifier-console
: Notifier used to monitor the events that the chain (more about chains).
note
You can find more plugins available here.
config.json
#
We find this:
Three sections to include triggers, executors, and notifiers. Each plugin is assigned an identifier (id), type, which identifies the plugin and its configuration.
plan.json
#
For this case, we have a single chain with a single process:
note
It is likely that if you do a real project with Runnerty you will need to split the plan into several documents. This is possible by making a document for each chain and indicating in chains
/chain_path
the document path of the chain.
Learn more about chains and about plans.
note
In the examples shown here, a couple of functions (@GV
and @GETDATE
) from Runnerty's interpreter are used.
Learn more about the available functions here.