<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by José Antonio Ruiz Santiago on Medium]]></title>
        <description><![CDATA[Stories by José Antonio Ruiz Santiago on Medium]]></description>
        <link>https://medium.com/@joseant.ruizsantiago?source=rss-51dc70699e41------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*9k58pU0ZFhIecKzX.</url>
            <title>Stories by José Antonio Ruiz Santiago on Medium</title>
            <link>https://medium.com/@joseant.ruizsantiago?source=rss-51dc70699e41------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 16:02:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@joseant.ruizsantiago/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Firebase Realtime Database + Runnerty]]></title>
            <link>https://medium.com/runnerty/firebase-realtime-database-runnerty-eee3c9dec6aa?source=rss-51dc70699e41------2</link>
            <guid isPermaLink="false">https://medium.com/p/eee3c9dec6aa</guid>
            <category><![CDATA[workflow]]></category>
            <category><![CDATA[process]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[pipeline]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[José Antonio Ruiz Santiago]]></dc:creator>
            <pubDate>Sat, 27 Oct 2018 17:17:56 GMT</pubDate>
            <atom:updated>2018-10-27T17:17:56.195Z</atom:updated>
            <content:encoded><![CDATA[<p>Do you use <strong>Firebase Real-time Database</strong> in your app? Would you like to send and email when a new user is registered in the database?</p><p>Thanks to Runnerty now it’s very easy to trigger processes or workflows to do whatever you need depending off the actions that may occur in your database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*L4hooh0k0XPNPuwAKThzfg@2x.jpeg" /></figure><p><strong>Runnerty</strong> have launched a new trigger plugin to listen if there is a new record or change in your databases documents.</p><p>In this example I’m going to show how to configure and use it when a new user is registered in the app. If you don’t know how Runnerty works, I recommend you to read this article: <a href="https://link.medium.com/wNjNjl5eeR">https://link.medium.com/wNjNjl5eeR</a></p><h3>Cloning and installing.</h3><p>clone the repo and install dependenies:</p><pre>git clone <a href="https://github.com/Jhonsensf/runnerty-firebase-demo.git">https://github.com/Jhonsensf/runnerty-firebase-demo.git</a><br>cd runnerty-firebase-demo<br>npm i</pre><p>If we open the plan.json file, we will see that this chain only has a trigger and a process configured. The trigger will listen to new records in the “users” document of our database:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*bEqNtRn-bts9bKQXXSgOSg.png" /></figure><p>The process will send a welcome email to the new user recorded in the database:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*25i1SSxN3HxfWmDWCKYN9Q.png" /></figure><h3>Configuring the Firebase Trigger:</h3><p>To get our firebase trigger working we have to add our database account data in the config.json file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U1a_F6C0CGHelT-Byw-sIw.png" /></figure><p>To get the service account file and the database URL we have to select our project in the firebase console then go to project settings &gt; service accounts, and finally click on “generate new private key”. It will download a .json file with the key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z6ymwtkqz5oPTVkx4-8ABg.png" /></figure><p>In this view there is also the URL of our database. Now we have to add this data to the firebase trigger configuration in the config.json file of the project.</p><h3><strong>Configuring the mail executor:</strong></h3><p>To use the mail executor we just have to add our smtp account data to the executor configuration data in the config.json file of the project:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TIvW4cL0lCANm17_k-jIBw.png" /></figure><p>Note that the email executor is using a template system to send the email. In the project there is a template as example, but you can change it and use your own tamplates.</p><h3><strong>How it works:</strong></h3><p>Once we have everything configured we are ready to execute our workflow just with this command:</p><pre>runnerty</pre><p>Now, runnerty is being executed listening for new users in the database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A4WePUR84YpEln3tUYofbw.png" /></figure><p>Once a new user is recorded in the database, the firebase trigger will fire the chain al will share all the record data with the rest of the chain, so you can use this data y the next processes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*A-cfi42P-m1yHGU_av8eyg.gif" /><figcaption>New record inserted in the database</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J3H9md_u2uQQX9O-9jOV9w.png" /><figcaption>All the @gv(var) will be replaced by it’s value thanks to the runnerty interpreter.</figcaption></figure><p>And finally, te email is sent by Runnerty replacing the values:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fTCCoh1rEKEk3gtBGNP03Q.png" /></figure><p>That’s all!!!. Runnerty has a lot of different triggers, executors and notifiers that allows you to design awesome workflows connecting it with different servicies and technologies. Stay tuned for new articles and tutorials!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eee3c9dec6aa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/runnerty/firebase-realtime-database-runnerty-eee3c9dec6aa">Firebase Realtime Database + Runnerty</a> was originally published in <a href="https://medium.com/runnerty">Runnerty</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a PWA with Angular 6]]></title>
            <link>https://medium.com/@joseant.ruizsantiago/building-a-pwa-with-angular-6-5735d7308d25?source=rss-51dc70699e41------2</link>
            <guid isPermaLink="false">https://medium.com/p/5735d7308d25</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[service-worker]]></category>
            <category><![CDATA[pwa]]></category>
            <dc:creator><![CDATA[José Antonio Ruiz Santiago]]></dc:creator>
            <pubDate>Sun, 20 May 2018 18:14:27 GMT</pubDate>
            <atom:updated>2018-05-21T07:03:00.649Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*PixMI-qvnmsl3qijPTWPXQ.jpeg" /></figure><p>Everyone is talking about progressive web apps at this moment, I bet that you probably have heard something about them. They can defeat dragons, ride unicorns or be loaded at the speed of sound.</p><p>This article is focused on how to create a simple PWA application using Angular 6, but before this, let’s have a look to the main benefits that make PWAs so trendy.</p><ul><li>Unlinked to the stores. No need to publish them, sometimes it could be a tough and expensive task (specially in Apple´s case).</li><li>No need to download them. You can install them directly from a browser prompt.</li><li>App-like. A PWA act and feel like a native app, having access to some device functionalities like the camera.</li><li>Offline mode and Web push notifications thanks to the service workers.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*HaW40c6DuL0u-9aUC6O2vA.png" /></figure><p>These features are making developers and companies invest time on creating PWAs. Specially in the case of ecommerce.</p><h3>Angular 6. Yeah, it’s helping a lot!</h3><p>The Angular team knows how important PWAs will become in the next years, so they want to make it easy for us. In the latest version of the framework there is a command which turn your project into a PWA.</p><p>Let’s go step by step, so first thing that we have to do is to install or upload to the latest version of angular-cli.</p><pre>npm install -g @angular/cli</pre><p>Then we are going to create a new project.</p><pre>ng new myPwaApp</pre><p>Finally, we serve the project:</p><pre>cd myPwaApp<br>ng build</pre><p>Now, our project is running in <a href="https://localhost:4200/">https://localhost:4200/</a>with some default content. Actually, we don’t need to change much on this content.</p><p>Now, thanks to Angular 6, we can turn our project into a PWA just executing the following command:</p><pre>ng add @angular/pwa</pre><p>After publishing our App let’s have a look of what this command has done for us.</p><p>We can see that the @angular/service-worker have been added to our package.json. It also has created the manifest.json with our app data and the different sizes of the favicon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*Plr5iXypERt0bj_JTNpfIg.png" /></figure><p>The masnifest.json have been added to the index.html file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*3hbTfPdlaK7WfxEx3uG7cA.png" /></figure><p>It has also active the flag service worker to true in the angular.json file. This flag. This flag will cause the creation of a couple of files in the build for production.</p><p>. ngsw-worker.js</p><p>. ngsw.json</p><p>Theses files are the Angular Service Worker itself. The ngsw.json tells the service worker how it has to behave.</p><p>If we have a look at some lines of the code, we can see that the loading configuration of the PWA is set in this file. For example, the main js and css files are loaded in “prefetch” mode. This means that the app is going to load this content immediately when it is launched (for the first time).</p><p>On the other hand, the assets are going to be loaded on background. But only when the app is installed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PTxOV-w14dP1zanhspvd2A.png" /></figure><p>This file is also used by the service worker to know when a file has changed and has to update the app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PPtpjptdH9ftIWMEmJN2OA.png" /></figure><p>Finally it has added the ServiceWorkerModule to the app.module.ts and also register the service worker.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8y4IcUaI4sE-il98TeG09A.png" /></figure><h3>Publishing our App</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*f_SR3D_-BB4Va5hoFFz2HA.png" /></figure><p>Once we have saw how angular 6 become our project into a PWA, it’s time to publish it and know how it works. The service worker needs HTTPS to work properly. So, in my case the best option to publish the app is using Firebase Hosting. For this purpose, install the Firebase tools:</p><pre>npm install -g firebase-tools</pre><p>Login into your Firebase account:</p><pre>firebase login</pre><p>Create new Firebase project:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TZ-B43Y-IqYoS3arxXPFjw.png" /></figure><p>Initialize the project following the instructions of the Firebase CLI. (Don’t forget to choose the “hosting” service)</p><pre>firebase init</pre><p>Then add the Angular project into the public folder of the firebase project and modify the firebase.json to redirect your public folder to the correct path of the build of the project. I did it like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8_fOaz6D3nZbdhse4bQHUg.png" /></figure><p>And finally we can deploy our project. With the flag “only hosting” it will only deploy our app without taking care of any other Firebase service we may be using.</p><pre>firebase deploy --only hosting</pre><p>Once deployed, we can access to our app, install it from the browser and check how it feels like a native app. You can check mine in this link:</p><p><strong>Hosting URL:</strong> <a href="https://jose-ant-ruiz.firebaseapp.com/">https://jose-ant-ruiz.firebaseapp.com</a></p><p>I will add more functionalities to the app in the future, like push notifications. Thanks for reading and stay tuned!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5735d7308d25" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build a Twitter bot with Runnerty in 5 min]]></title>
            <link>https://medium.com/runnerty/build-a-twitter-bot-with-runnerty-in-less-than-5-minutes-2ea45fe87ca1?source=rss-51dc70699e41------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ea45fe87ca1</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[workflow]]></category>
            <category><![CDATA[node]]></category>
            <category><![CDATA[process]]></category>
            <dc:creator><![CDATA[José Antonio Ruiz Santiago]]></dc:creator>
            <pubDate>Wed, 07 Mar 2018 17:13:16 GMT</pubDate>
            <atom:updated>2018-03-07T17:42:38.123Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DBmICuc7vTNe7u7YWilL9Q.jpeg" /></figure><p>Runnerty is an open source process orchestrator which allows us to build workflows establishing real dependencies between the processes.</p><p>In this tutorial we are going to build a twitter bot using Runnerty in less than 5 minutes. This bot is going to listen to the new followers of a twitter account and send a direct message to them.</p><p>I am assuming that you know how Runnerty works basically. If you do not know yet, I really encourage you to read its basics: <a href="https://medium.com/runnerty/introducing-runnerty-1284c3e5d1b1">https://medium.com/runnerty/introducing-runnerty-1284c3e5d1b1</a> .</p><h3>Installing Runnerty and cloning the quick start repo.</h3><p>First thing we have to do is to install runnerty.</p><pre>npm i -g runnerty</pre><p>Next step is to download the Runnerty quick start repo. This repo contains a sample runnerty chain with just one proccess:</p><pre># Clone this repository<br>git clone https://github.com/runnerty/runnerty-quick-start<br><br># Go into the repository<br>cd runnerty-quick-start<br><br># Install dependencies<br>npm install</pre><p>Now we are going to work in this project adapting it to our purpose.</p><h3>Installing and configuring the runnerty twitter trigger:</h3><p>To start working with the trigger we are going to install it:</p><pre>npm i @runnerty/trigger-twitter</pre><p>Now, we only have to configure the trigger in our config.json. If we look at the sample configuration instructions, we only have to write our API key data. This will be our config.json:</p><pre>&quot;triggers&quot;: [<br>  {<br>    &quot;id&quot;:&quot;twitter_default&quot;,<br>    &quot;type&quot;:&quot;@runnerty-trigger-twitter&quot;,<br>    &quot;consumerKey&quot;:&quot;MyTwitterConsumerKey&quot;,<br>    &quot;consumerSecret&quot;:&quot;MyTwitterconsumerSecret&quot;,<br>    &quot;accessToken&quot;:&quot;MyTwitteraccessToken&quot;,<br>    &quot;accessTokenSecret&quot;:&quot;MyTwitteraccessTokenSecret&quot;<br>  }<br>]</pre><p>To get a twitter API key go to the website: <a href="https://apps.twitter.com/">https://apps.twitter.com</a> and log-in with the account and click on “create new app”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BX_3Mbx3Q_fGiPpNUr4ylg.png" /></figure><p>Then, we have to fill the data and click on “create your Twitter application”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vhHS3-UCyWxJnwnR6zSATA.png" /></figure><p>Finally, we can go to the “Keys and Access Tokens” of our app Settings and we will find there our API key access data:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xjxl15wKzFbzudGn2uhNsQ.png" /></figure><p>Once we have our twitter credentials in the runnerty twitter trigger confurarion, we are ready to use it in our chain. We move to the plan.json file and we will see that it is currently using the scheduler trigger. We have to chage it by our twitter trigger. The trigger section of the plan have to look like this:</p><pre>{<br>  &quot;chains&quot;:[<br>    {<br>      &quot;id&quot;:&quot;STREAM_NEW_FOLLOWERS&quot;,<br>      &quot;name&quot;:&quot;Stream for new followers and send a DM to them&quot;,<br>      &quot;triggers&quot;:[<br>        {<br>          &quot;id&quot;:&quot;twitter_dafault&quot;,<br>          &quot;command&quot;:&quot;follow&quot;<br>        }<br>      ],<br>      &quot;processes&quot;:[<br>      ]<br>    }<br>  ]<br>}</pre><p>As we can see, I have added the command property, this property tell the triggers to fire the chain when someone start to follow the twitter account. I also have changed the chain id and name for a logic name.</p><h3>Installing and configuring the twitter executor:</h3><p>Once we have our trigger configured we can start to plan the process. This process is going to send direct message to the new follower. So, we are going to need the Runnerty twitter executor:</p><pre>npm i -g @runnerty/executor-twitter</pre><p>As we did with the trigger, we have to configure it in our config.json file adding the configuration to our executors section and changing the credentials for ours:</p><pre>&quot;executors&quot;: [<br>    {<br>      &quot;id&quot;:&quot;twitter_default&quot;,<br>      &quot;type&quot;:&quot;@runnerty-executor-twitter&quot;,<br>      &quot;consumerKey&quot;:&quot;MyTwitterConsumerKey&quot;,<br>      &quot;consumerSecret&quot;:&quot;MyTwitterconsumerSecret&quot;,<br>      &quot;accessToken&quot;:&quot;MyTwitteraccessToken&quot;,<br>      &quot;accessTokenSecret&quot;:&quot;MyTwitteraccessTokenSecret&quot;<br>    }<br>  ]</pre><p>Now we are ready to cconfigure the process, going bat to the plan.json in the processes section, we are going to modify the existing process:</p><pre>&quot;processes&quot;: [<br>  {<br>    &quot;id&quot;: &quot;SEND_DM_TO_NEW_FOLLOER&quot;,<br>    &quot;name&quot;: &quot;It sends a direct message to the new follower&quot;,<br>    &quot;exec&quot;: {<br>      &quot;id&quot;: &quot;twitter_default&quot;,<br>      &quot;command&quot;:&quot;direct&quot;,<br>      &quot;screen_name&quot;:&quot;@GV(user_screen_name)&quot;,<br>      &quot;textToSend&quot;: &quot;Hi there, thanx for following me.&quot;<br>    },<br>    &quot;chain_action_on_fail&quot;: {<br>      &quot;action&quot;: &quot;end&quot;<br>    }<br>  }<br>]</pre><ul><li>I have removed the output section (This writes the output of the process in a file) we are not going to need it.</li><li>I have given a logic id and name to the process.</li><li>I have change the exec section adding the twitter executor and configuring the params to indicates the executor to send a DM, user id who may receive it and the message text.</li></ul><p>As you can see, I am using an runnerty function to get the user_screen_name. It is good to claryfy how it works.</p><p>The “user_screem_name” came from the twitter trigger which shares the information of the new follower with the rest of the chain once it is fired. If you look at the npm package documentation you can see all the data that is shared with the chain:</p><pre>user_id: number<br>user_id_str: number<br>user_name: string<br>user_screen_name: string<br>user_location: string<br>user_description: string<br>user_followers_count: number<br>user_friends_count: number<br>user_listed_count: number<br>user_favourites_count: number<br>user_statuses_count: number<br>user_lang: string<br>user_profile_background_image_url: string<br>user_profile_image_url: string<br>user_following: boolean<br>user_follow_request_sent: boolean<br>tweet_created_at: date<br>tweet_id: number<br>tweet_id_str: number<br>tweet_text: string<br>tweet_retweet_count: number<br>tweet_favorite_count: number<br>tweet_hashtags: object<br>tweet_data: object with all the data retreived by the Twitter API</pre><p>You have probably noticed that I am using a @GV() function in the “screen_name” property. This is a native function from Runnerty that gets the value from a variable. Runnerty also provides several functions for transforming data, you can have a look at the official documentantion <a href="http://docs.runnerty.io/functions/">http://docs.runnerty.io/functions/</a></p><p>Now we have our chain ready for lunching. All that we have to do is run:</p><pre>runnerty</pre><p>Every time we hav a new follower in twitter the chain is fired and sends an email to the new follower. You can download the entire demo in this repo: <a href="https://github.com/Jhonsensf/runnerty-simple-twitter-bot">https://github.com/Jhonsensf/runnerty-simple-twitter-bot</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ea45fe87ca1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/runnerty/build-a-twitter-bot-with-runnerty-in-less-than-5-minutes-2ea45fe87ca1">Build a Twitter bot with Runnerty in 5 min</a> was originally published in <a href="https://medium.com/runnerty">Runnerty</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing Runnerty]]></title>
            <link>https://medium.com/runnerty/introducing-runnerty-1284c3e5d1b1?source=rss-51dc70699e41------2</link>
            <guid isPermaLink="false">https://medium.com/p/1284c3e5d1b1</guid>
            <category><![CDATA[automation-tools]]></category>
            <category><![CDATA[workflow]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[processing]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[José Antonio Ruiz Santiago]]></dc:creator>
            <pubDate>Wed, 07 Mar 2018 17:09:44 GMT</pubDate>
            <atom:updated>2018-07-18T23:33:39.581Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/227/1*o02T8COvQpOzmf3CVbJeWg.png" /><figcaption>Runnerty logo</figcaption></figure><p>Runnerty is an open source process orchestrator written in nodejs. It allows us to plan and configure workflows easily, providing a big amount of features.</p><p>In this article I am going to explain how it works and why it can helps you.</p><h3>What is a process and a workflow?</h3><p>First thing we have to understand is what is a process and a workflow. A process is an action or operation and a workflow is a serie of processes conected and directed to some end.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mTuBaRbtMt8DbBZ9YxQaCA.jpeg" /></figure><p>These are some examples of typical workflows in every system:</p><ul><li>Automatic backups</li><li>Mailing</li><li>Database operations</li><li>Files operations</li><li>ETL (Extract, transform, load)</li></ul><h3><strong>Based in four concepts</strong></h3><p>Runnerty is based in four concepts; Chains, executors, notifiers and triggers. To start configuring and planing our workflows we will have to understand how runnerty use this four components.</p><h4>Chains:</h4><p>A chain is just a set of processes. The place where we are going to configure or processes, establishing dependencies between them, sharing data from one process to the others, etc.</p><h4>Executors:</h4><p>The executors are runnerty plugins that allows us to do different opperations with our processes without writing a single line of code.</p><p>For example, we could execute an instruction in our Mysql database just configuring the Mysql Runnerty executor. Or send an email with the mail executor just indicating who and the text of the message.</p><p>There are a lot of executors already developed that you can use just installing them with npm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3xKYwTWsKcIpE2EWyZj5sQ.png" /><figcaption>Some of the existing executors</figcaption></figure><p>It is important to say that we are not obligated to use the runnerty executors, we could use any process that we already have developed, so runnerty is completely compatible with your actual system. Furthermore, Runnerty is language agnostic, it can run any process writen in any language (javascript, php, python, bash, etc)</p><h4>Notifiers:</h4><p>Another awesome feature of runnerty is the possibility to get notified when an event occurs in our chain or processes. For example, we would like to know when a process of our chain fails.</p><p>As the executors, the notifiers are plugins which Runnerty use for this end. we can get notified via telegram, slack, etc, in different events of the processes or chain, (start, end, fail, retry, etc).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PVoRcVxR9AKyxnN3UBwr9Q.png" /><figcaption>Some of the notifiers already developed</figcaption></figure><h4>Triggers:</h4><p>Once we know that we can config a chain with our processes using the runnerty executors to execute operations and notifiers to know when something happen in our processes, it just left to know how we can indicate when out chain has to start.</p><p>Ad hoc, runnerty provides another kind of plugins called triggers. The triggers fires our chains and can do that in several ways. For example every hour, or in an specific date, or when a file is left in a directory, or when a new user is inserted in a Firebase database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vnx8cr0U7udehPwvmmEAeQ.png" /><figcaption>Some of the existing triggers</figcaption></figure><h3>Hands on code</h3><p>Do you find interesting what runnerty can do? Let’s follow the quick-start they have to get in touch with the code.</p><p><strong>Installing runnerty and cloning the repo:</strong></p><p>To install runnerty in our system all we need is to have node v8.9.4</p><pre>npm install runnerty -g</pre><p>Now we can clone the quick-start repo and go into the project:</p><pre>git clone <a href="https://github.com/runnerty/runnerty-quick-start">https://github.com/runnerty/runnerty-quick-start</a><br>cd runnerty-quick-start</pre><p>This repo contains a simple chain with just one process, this process only executes an echo using the shell executor. The chain is fired every minute using the scheduler trigger:</p><p>Let’s have a look at the files:</p><p><strong>package.json</strong>. Here we can see the runnerty modules installed as dependencies, if we want to add more executors, triggers or notifiers we just have to install them via npm.</p><pre>&quot;dependencies&quot;: {<br>    &quot;@runnerty/trigger-schedule&quot;: &quot;latest&quot;,<br>    &quot;@runnerty/executor-shell&quot;: &quot;latest&quot;<br>  }</pre><p><strong>config.json.</strong> In this file is where we are going to add the configurations for our executors, notifiers and triggers:</p><pre>{<br>  &quot;triggers&quot;: [<br>    {<br>      &quot;id&quot;:&quot;schedule_dafault&quot;,<br>      &quot;type&quot;:&quot;@runnerty-trigger-schedule&quot;<br>    }<br>  ],<br>  &quot;executors&quot;: [<br>    {<br>      &quot;id&quot;: &quot;shell_default&quot;,<br>      &quot;type&quot;: &quot;@runnerty-executor-shell&quot;<br>    }<br>  ]<br>}</pre><p>As we can see in the file there are only two configurations, for the shedule trigger and for the shell executor.</p><p><strong>plan.json.</strong> Finnally in this file is where our chain and processes are:</p><pre>{<br>  &quot;chains&quot;:[<br>    {<br>      &quot;id&quot;:&quot;CHAIN_ONE&quot;,<br>      &quot;name&quot;:&quot;Chain one sample&quot;,<br>      &quot;triggers&quot;:[<br>        {<br>          &quot;id&quot;:&quot;schedule_dafault&quot;,<br>          &quot;schedule_interval&quot;:&quot;*/1 * * * *&quot;<br>        }<br>      ],<br>      &quot;processes&quot;:[<br>      ]<br>    }<br>  ]<br>}</pre><p>At the first level of the chain we have the general data of the chain (name and id) and in the triggers section we find the usage of the shcheduler trigger. In this case the interval given indicates that the chain is going to be executed every minute.</p><p>Below we find the processes array, in this section is where all the processes are configured:</p><pre>&quot;processes&quot;: [<br>  {<br>    &quot;id&quot;: &quot;PROCESS_ONE&quot;,<br>    &quot;name&quot;: &quot;Proccess One&quot;,<br>    &quot;exec&quot;: {<br>      &quot;id&quot;: &quot;shell_default&quot;,<br>      &quot;command&quot;: &quot;echo Runnerty: hello world!&quot;<br>    },<br>    &quot;chain_action_on_fail&quot;: {<br>      &quot;action&quot;: &quot;end&quot;<br>    },<br>    &quot;output&quot;: [<br>      {<br>        &quot;file_name&quot;: &quot;./test.log&quot;,<br>        &quot;write&quot;: [<br>          &quot;EXECUTION @GETVALUE(PROCESS_ID) - AT @GETDATE(&#39;YYYY-MM-DD                     HH:mm:ss&#39;)\n @GETVALUE(PROCESS_EXEC_MSG_OUTPUT)&quot;<br>        ],<br>        &quot;concat&quot;: true,<br>        &quot;maxsize&quot;: &quot;10mb&quot;<br>      }<br>    ]<br>  }<br>]</pre><p>As we can see there is only one process planed, it uses the shell executor executing an echo.</p><p>Having a look at the output property it is indicating to write the output of ther process in a file.</p><p>To executes this chain we just have to run runnerty in the project directory. And in the next minute will see how the test.log file is created with to output of the process.</p><pre>runnerty</pre><h3>What’s next?</h3><p>This is the easiest example of runnerty usage, it only shows a minimal part of its potential. Runnerty is a very powerful tool which provides awesome features to create and manage workflows:</p><ul><li>A large amount of executor, notifier and triggers to develop processes without writing code and connect them with several servicies and platforms.</li><li>Notifications on events to always know what is happening.</li><li>Simple and advanced dependencies between processes and chains.</li><li>Params and credential centralization.</li><li>Auto-gestioned logs.</li><li>Historification.</li><li>Language independence.</li><li>Easy scalable</li><li>…</li></ul><p>I really encourage you to have a look at the runnerty documentation (<a href="http://docs.runnerty.io/">http://docs.runnerty.io</a>) and find more information and tutorials.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1284c3e5d1b1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/runnerty/introducing-runnerty-1284c3e5d1b1">Introducing Runnerty</a> was originally published in <a href="https://medium.com/runnerty">Runnerty</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why use Runnerty?]]></title>
            <link>https://medium.com/runnerty/why-use-runnerty-dfa1af208977?source=rss-51dc70699e41------2</link>
            <guid isPermaLink="false">https://medium.com/p/dfa1af208977</guid>
            <category><![CDATA[process]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[workflow]]></category>
            <dc:creator><![CDATA[José Antonio Ruiz Santiago]]></dc:creator>
            <pubDate>Wed, 07 Mar 2018 17:01:33 GMT</pubDate>
            <atom:updated>2018-03-13T12:56:12.166Z</atom:updated>
            <content:encoded><![CDATA[<p>Every software team has have to deal with processes development, execution and planning. Normally we use cron jobs for this issue. Most of the times these tasks become really tough due to different difficulties:</p><ul><li><strong>Impossibility to modularize functionalities</strong>. We end writing giant processes with hundreds of lines that do a lot of stuff.</li><li><strong>Lack of dependencies between processes. </strong>If we want to execute one process after another we have to “trust” that the first one has ended by the time that the second one has to start.</li><li><strong>Completly ignorance of what is going on. </strong>It is almost impossible (unless you specifically develop it.) to know when something failed in your processes. It is usual to check every day long logs to know if something went wrong.</li><li><strong>High maintenance and development costs. </strong>The workflows ends becoming a messy group of processes very hard to mantain and difficult to evolve.</li></ul><p>Due to this problematic, Runnerty was born on 2016. Having tested Airflow from Airbnb and Luigi from Spotify both of them were not deep enough for most of the needs. We found that they were made for one concrete solution and we wanted something wider which any developer could use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fhbPLVlEQc_zql08xHrJdg.png" /></figure><h3>Runnerty main features:</h3><ul><li><strong>Real dependencies. </strong>Let to establish dependencies between processes. Not just to wait until the previous processes has ended. It supports complex dependencies, for example when a process fails, retires, or also evaluate a process output to decide what to do, etc.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*Q_qaAZQ9ke5vHR57Cmxc4A.png" /><figcaption>Workflow example.</figcaption></figure><ul><li><strong>Modularization</strong>. Runnerty provides an ecosystem which allows us to configure processes without coding any line, just adding modules and configuring them.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3xKYwTWsKcIpE2EWyZj5sQ.png" /><figcaption>Some of the runnerty existing modules</figcaption></figure><ul><li><strong>Language agnostic. </strong>javascript?, python?, php?.<strong> </strong>Runnerty is compatible with any existing language. If you already have working processes, you can bring them to Runnerty.</li><li><strong>Get notified whenever you want. </strong>It also provides notifiers modules which allows you to know everything of your processes and workflows. You can get advised when a processes fails, or when a workflow starts or ends.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PVoRcVxR9AKyxnN3UBwr9Q.png" /><figcaption>Some of the existing notifiers modules</figcaption></figure><ul><li><strong>Easy and powerful. </strong>From a simple task to a huge workflow with hundreds of processes. Runnerty is so easy to develop with that you can build your first workflow in minutes. And thanks to the modularization, you can create complex workflows reducing dramatically the development time.</li><li><strong>Historization. </strong>Do you want to know what happened with your workflow last month? or how much have increased the execution time of any process?. It is possible to connect runnerty to a database to store all the data of your workflows executions.</li><li><strong>Centralization. </strong>Forget about having your passwords, keys or access tokens in you code or replied in dozens of processes. With runnerty you can have them centralized. And not only passwords, also params, paths, etc. Furthermore, you can have them encrypted!</li><li><strong>In the right place at the right time. </strong>Execute your workflows whenever you want or from wherever you want. You can plan you workflows using the runnerty trigger modules. They let you to execute your workflows at an specific time, or when a file is left in a directory, even when you have a new follower on twitter. Moreover, Runnerty provides an API to execute, stop or force a workflows remotely.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vnx8cr0U7udehPwvmmEAeQ.png" /><figcaption>Runnerty triggers modules.</figcaption></figure><p>These are just some of the Runnerty features, there are a few more that makes really easy to schedule a workflow with Runnerty.</p><h3>Do you want to know more?</h3><p>If you found this article iteresting, then I really encourage you to read more and have a look to the official documentation:</p><ul><li><strong>Build a twitter bot with runnerty in 5 minutes:</strong> <a href="https://medium.com/runnerty/build-a-twitter-bot-with-runnerty-in-less-than-5-minutes-2ea45fe87ca1">https://medium.com/runnerty/build-a-twitter-bot-with-runnerty-in-less-than-5-minutes-2ea45fe87ca1</a></li><li><strong>Introducing Runnerty:</strong> <a href="https://medium.com/runnerty/introducing-runnerty-1284c3e5d1b1">https://medium.com/runnerty/introducing-runnerty-1284c3e5d1b1</a></li><li><strong>Official documentation:</strong> <a href="http://docs.runnerty.io/">http://docs.runnerty.io</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dfa1af208977" width="1" height="1" alt=""><hr><p><a href="https://medium.com/runnerty/why-use-runnerty-dfa1af208977">Why use Runnerty?</a> was originally published in <a href="https://medium.com/runnerty">Runnerty</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>