Serverless Ruby on AWS Lambda with the Jets framework
When AWS launched Lambda in 2014 there was no love for Ruby. Platforms like Python, Node.js, and Java started the serverless revolution for hosting and running functions in the cloud. At the end of 2018, support for Ruby was finally launched.
You can build with Ruby on Lambda using raw functions and Serverless Application Model (SAM) templates as described in the getting started guide for Ruby on Lambda, but Ruby is all about developer happiness and when the config file is longer than your program the process could be described as painful. Enter the Jets framework a framework that "leverages the power of Ruby to make serverless joyful for everyone."
From Rails to Jets
Jets combines the experience of building a Rails application with the ability to deploy to AWS Lambda and related services, including API Gateway, S3, and DynamoDB. In this post we're going to see how ...
Create an OpenCart SMS Extension to Notify Store Owners of New Orders
In this tutorial, we'll explore how to use the Twilio SMS API to create an OpenCart module that sends an SMS when a customer places an order, registers, or has their order history modified.
OpenCart is a free open source e-commerce platform for online merchants. It provides a professional and reliable foundation from which to build a successful online store. This foundation appeals to a wide variety of users; ranging from seasoned web developers looking for a user-friendly interface to use, to shop owners just launching their business online for the first time.
- PHP development environment using lamp (for Linux users), xampp (for windows users) e.t.c.
- Global installation of Composer
- Twilio Account
- OpenCart Installation
OpenCart requirement and Installation
Understand the OpenCart folder structure
The OpenCart is one of the great examples of MVC framework ...
Call Twilio Functions from iOS in Swift
There are many things you can do from iOS but sometimes, for example, you may need to make a web request to fetch information. With Twilio Functions you can focus on writing the code that matters without having to maintain a server. This tutorial will show you how to set up a Twilio Function that returns a Pokemon joke or two and then call that Function from an iOS application.
Before you get started, you'll need
- a Twilio account to create a Twilio Function
- Xcode installed to make a rudimentary iOS app to call the Function
Make a Twilio Function
The Twilio Function in this tutorial will return a simple hard-coded Pikachu joke. To make that Function, from your Functions page, click the red "+" button to make a new Function.
If this is your first Function, you'll click ...
Create a Real-Time Polling App using Twilio Sync and Laravel PHP
Real-time updates is a feature that is becoming increasingly common in modern web applications. There are several hosted API services that provide real-time functionality to web and mobile applications and Twilio Sync is one of these services.
Sync relies on the concept of state synchronization while making use of sync objects. Sync objects are the primitives you use to make your application's state discoverable and accessible at the right granularity. There are four different object primitives each with a different use case - I won't be talking about the different primitives but this document is a good place to start.
In this tutorial, we'll look at how we can add real-time functionality to a Laravel app while making use of Message Stream sync objects.
NOTE: Sync Message Streams let you broadcast JSON messages at a high rate to an elastic group of subscribers.
I chose Sync Message Streams due to their ...
You'll also get a hands-on introduction to working with MongoDB Atlas as a ...
To follow along, you will need a development server. If you don't already have one installed you can install the Web Server for Chrome extension for Google Chrome.
This post ...
How to Queue Emails in Laravel PHP with Twilio SendGrid
Laravel is one of the most famous PHP MVC frameworks with a great community. It provides all the features that are required to create your project, whether it is for personal or enterprise level usage. One feature that sets Laravel apart from other frameworks is “Laravel Queue”. For any project that needs to defer time consuming tasks, Laravel Queue offers this support out of the box.
This tutorial will help you to implement the Laravel Queue to send emails. After we’re finished, you will have a running Laravel application that allows you to send emails to registered users using Laravel queue to prevent your task from timing out and increase deliverability of your emails. We will use Sendgrid for sending emails because their service will allow us to check out whether your email is read or opened by the user.
- PHP development environment with Laravel
- Composer globally ...
Real-Time SMS Order Notifications with Magento and Twilio
Managing your own storefront and competing with Amazon can be difficult, especially due to their ability to automate and process orders much faster than their competition. While you may not be able to setup an expensive pick and pack fulfillment system & process, there are ways in which you can implement a solution much more quickly and affordably. One of those ways is to implement the Twilio API into your Magento storefront for real-time SMS order notifications.
The Twilio PHP Helper Library makes it relatively simple & easy to integrate real-time notifications into your Magento store. In this tutorial, we will walk through all of the steps needed to integrate Twilio with Magento so you can pick & pack incoming orders as soon as they come in.
For this tutorial we'll assume the following:
- You have a running instance of Magento 2.3+ installed with products or sample ...
Implement One Time Password Login & Signup with Yii 2 PHP and Twilio SMS
In recent years, the user signup and login process have not only been built around an email and password, but increasingly the user’s phone number and a One Time Password (OTP) for improving security. In this tutorial we’ll build a basic Yii 2 App with signup/login functionality and for authentication, an OTP sent via Twilio Programmable SMS will be used.
Note: The application code and files used in this tutorial are available in this repo.
For this tutorial we’ll assume you:
- Have a PHP development environment e.g XAMPP, WAMP
- Are familiar with PHP and MySQL (PhpMyAdmin)
- Are familiar with Yii 2 Framework
- Have a Terminal (Command Line)
- Have Composer installed
- Have a Twilio account with SID, Auth Token and Twilio Phone number available
Create a new Yii 2 App
We’ll start off by installing a new ...
HTTP headers for the responsible developer
Being online is the default state for many people these days. We all spend our time shopping, chatting, reading articles, and looking for information like directions. The web connects us with the whole world, but most certainly the web connects people. I myself have been using the web now for 20 years, and my relationship to it changed eight years ago when I became a web developer.
Developers connect people.
Developers help people.
Developers enable people.
Developers have the power to build the web for everyone, but that power needs to be used responsibly. What matters, in the end, is building things that help and enable people.
In this article, I want to share how HTTP headers can help you build better products for a better web ...