Tweet Stream Manager

2018-01-03 / All Blog posts

I publish multiple tweet streams, so I wrote a Node.js webapp using Express and Pug to help me manage them. This is what the user interface looks like. This is a silent video. Hopefully it makes sense to everyone.

For example, ScalaCourses.com currently has two tweet streams, each with their own schedule (times shown are HH:MM for a 24-hour clock):

crontab, running on a local XUbuntu machine, runs a Node.js command-line app that publishes the tweet streams:

NODE=/usr/bin/node
TWEETER=/var/work/training/projects/tweeter

45 6 * * *              $NODE $TWEETER/index.js $TWEETER/ScalaCourses
24 3,9,13,18,23 * * *   $NODE $TWEETER/index.js $TWEETER/SaleMore33 2018-01-03 2018-01-15

I intend to re-implement the command-line program as an AWS Lambda function one day. Instead of using CSV files for persistence, I'll probably go with Dynamo.


comments powered by Disqus