-
How to render HTML in Jade
Overview Jade is a Node.js template engine that uses indentation as part of the syntax By default, Jade buffers the output so we have to be explicit when we want unbuffered code Solution If content contains html and you want to render it, use != like this: div!=content Another example p!= ‘This code is’ + Read more
-

How to trigger a Lambda with a SQS message
Overview Take this example as a starting point. This is not a production-ready code, probably some tweaks for permissions will be necessary to meet your requirements. AWS resources we need Lambda Function let response; exports.lambdaHandler = async (event, context) => { try { response = { 'statusCode': 200, 'body': JSON.stringify({ message: 'hello world', }) } Read more
-

Download and save a file in Node.js
Overview Download a file in Node.js is pretty straightforward but we have to have into account a couple of things. We are going to make an implementation using native modules. No third parties. The code The following code downloads an image from a given URL and stores it in a given path. I´m assuming the Read more
-
5 reasons to choose WordPress as your content management tool
As an Engineer I installed WordPress many times, facing issues such as performance and security. When you host WordPress on your own, security is a headache because it’s a super known tool with lots of exploits so you receive strange HTTP requests all the time, trying to take advantage of some vulnerability. To delegate is Read more
-

How to publish a message in SQS from SNS
Let say you want to process images in background or any other task that requires heavy processing and you don’t want to tie this operation to any other core operation or service. Read more
