Shell functions, git shortcuts and other magical scripts I use with the Twilio API

I love Harry Potter, and part of the reason I love the wizarding world so much is that those people know how to use shortcuts! I often look at the habitual tasks of my daily life and wish I had a magical umbrella that could clean up my messes and fold my clothes. But while I still longingly hope for real-world shortcuts, I at least have… Read More

Getting started with the Star Wars API in Node.js using Twilio Functions

Star Wars: The Last Jedi comes out tonight and I am massively excited to see it. However, some of my other friends who are seeing the movie aren’t as familiar with the Star Wars universe as I am. Let’s use the amazing Star Wars API to build a Twilio powered SMS hack to help fix that. We are going to use Twilio Functions to avoid having to go through… Read More

The ultimate guide to sending bulk SMS with Twilio and Node.js

Sending a single SMS with Twilio is a relatively straightforward affair, but what if you had to send 10 messages? Or 10,000? Imagine you’re an ice cream seller. You want to improve business by sending SMS alerts when you’re in your van so that your customers will know you’re on your way to deliver some sweet refreshment. Look, I know what you’re thinking: “It’s December, hardly… Read More

How to Build Simple Chat Apps with JavaScript, Node.js and Twilio

nodejs logo

Twilio Chat makes it easy to add chat capability to your application by handling the worst devilish details that come up when building real-time chat. In this post we’ll walk you through how to add Twilio Chat to your own web application using JavaScript. The requirement to follow along are: An understanding of HTML, JavaScript and CSS. Some familiarity with Node.JS and Express or a similar framework… Read More

How to Receive and Respond to Text Messages with Node.js, Express and Twilio

You’re building an Express app and want to be able to respond to SMS messages? Let’s walk through how to add Twilio SMS to the Express “Hello World” app. Installing dependencies Before moving on, you’re going to need to have Node.js and npm installed. I am running version 8.6.0 and 5.3.0 respectively. We’re going to use: Express for our web framework Twilio’s Node library to interact with the Twilio… Read More

Protect your npm account with 2FA and Authy

“There has never been a major security incident caused by leaked npm credentials, but our security work is never finished.” This wasn’t the headline that npm lead with when they announced their support for two factor authentication recently, but it was a line that stuck out to me. It is fantastic to see that these critical parts of the infrastructure of web development are taking security seriously…. Read More

Building a TodoMVC with Twilio Sync and JavaScript

Sharing information between different devices in real-time is difficult but with Twilio Sync it’s just a matter of a few lines of code. To see how Sync works let’s create our own version of the TodoMVC application using Twilio Sync to store our data and share it across multiple devices. We’ll base our version on a copy of the Vanilla JS version of TodoMVC and alter the storage… Read More

How to Deploy JavaScript & Node.js Applications to AWS Lambda

AWS Lambda logo

Functions-as-a-Service (FaaS) such as Amazon Web Services Lambda and Twilio Functions can be cheap execution environments in which you pay only for resources used to deal with a particular request, typically measured in seconds or milliseconds. Today we will take a look at deploying a JavaScript Node.js application to AWS Lambda. Our application will keep a list of our best friends which we would like to… Read More

5 Ways to Make HTTP Requests in Node.js

Making HTTP requests is a core functionality for modern languages and one of the first things many developers learn when acclimating to new environments. When it comes to Node.js there are a fair amount of solutions to this problem both built into the language and by the community. Let’s take a look at some of the most popular ones. We’ll be using NASA’s Astronomy Picture of the… Read More