Hello! With our new Learn Catalyst series, we want to get you started with the easiest of all in the Catalyst environment - Cron.
Let us take a look at the use-case we have pitched in for Cron:
Ramon is a budding designer.
He wants to make it big, quickly. He works under the supervision of Herdes.
Herdes has asked Ramon to make one image a day and tweet it and get feedback on the image. This way Herdes figures that Ramon will get market-feedback and not just his and will eventually help Ramon become a better professional.
Making images is something that Ramon does well but he is not that well-versed about Twitter and he finds it difficult to remember to post his images everyday. So he approached Lodha. Lodha is a software engineer who is working on Catalyst by Zoho!
Lodha made a system with Catalyst in which all Ramon needs to do is to place the image he has made for the day in a specific folder. That is it.
The secret lies in the fact that Lodha used the Cron feature in Catalyst which looks for the image file in the directory, then automatically connects to Ramon's Twitter account and posts the image with a tweet.
Now Ramon is in a publishing spree of sorts and he is getting tons of feedbacks.. sure he does not like all of them but hey, the world gets to see his progress and Herdes is also happy for his student.
Catalyst - Making the world a happier place, regularly.
The code for the above example can be found here: https://github.com/catalystbyzoho/learncatalyst-crontwitterbot-node
Write the code for Cron function and Configure the Cron from the Catalyst Console as below :
And the use case is complete!
We welcome all queries from you here about any doubts that you may have. Also, you can post your queries here or you can write to us at support@zohocatalyst.com.
Await for the next post in the Learn Catalyst Series.
- Team Catalyst
#learncatalyst #serverless #catalystbyzoho