COBOL CGI program reading and writing to Redis + a simple AWS IoT Lambda function just polling the COBOL API.
'use strict';
const https = require('https');
exports.handler = (event, context, callback) => {
console.log('Received event:', event.clickType);
const options = {
host: 'cobol-dashboard.now.sh',
path: '/push',
port: 443,
method: 'GET'
};
const req = https.request(options, (res) => {
callback();
});
req.end();
};