A terraform file can get very large very quickly as you add more and more resource blocks. Custom modules are a great way of organizing your terraform code into logical pieces. You might have one module that handles the VPC set up, one that handles RDS, and another for EC2 […]
Articles
In this article, we’ll look at how to use cloud-init with terraform to install and configure nginx on an EC2 instance.
In this post, we will look at how to set up an S3 bucket and an EC2 instance using terraform. The S3 bucket will be set up so it can only be accessed privately and the EC2 instance will get access to the S3 bucket using IAM. I’ll be using […]
In this post, we’ll go over the basic structure of a terraform module and how to use variables and outputs in the root module.
Learn how to setup an Amazon Linux 2 EC2 instance with nginx to accept HTTPS requests. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/SSL-on-amazon-linux-2.html#letsencrypt Setup First you need to create a new amazon linux 2 ec2 instance with Nginx installed. You can follow one of these videos to get started: Nginx Reverse Proxy on AWS EC2 Amazon […]
If you are already using ESModules in your node application, natively without babel, then this is how you can setup your jest tests to use ESModules in the same way. The official docs for this can be found here: https://jestjs.io/docs/ecmascript-modules Note: For this to work you will need to be […]
In a previous article, we tested an express api that created a user. We only tested the http interface though, we never actually got to testing the database because we didn’t know about dependency injection yet. Now that we know how to inject the database, we can learn about mocking. […]
There are a few benefits to using dependency injection, but the best, most useful benefit and biggest reason to use dependency injection is to make your code more testable. In this article we’re going to take a look at what dependency injection is by using an example of an express […]
In this article, we’re going to look at how to use TDD to test an express API using the supertest and jest frameworks. Jest is a javascript test runner for running automated tests, and supertest provides a high-level abstraction for testing HTTP. The app that we will be testing will […]
In this article I’m going to show you how to upload an image from a react app to an express server using a library called multer. This will allow us to store the image in the server’s file system so they can be uploaded and downloaded by any client. React […]
In this video, I’m going to show you how to get started making iOS apps by building a basic Rock, Paper, Scissors game. We will be writing a little bit of Swift, so to get the most out of this video, you should be familiar with some sort of programming […]
In this post, we will take a high-level look at how computers execute tasks in parallel and some of the solutions we have for concurrency control.
Relational databases are all about tables. In order to store, organize, or query data; we must first create the tables. In this article, we will use the Data Definition Language (DDL) to learn about the basics of creating tables, choosing data types, adding constraints and default values.
In this video, we will take a look at how to perform some SQL injection attacks on a site, and we’ll learn how to protect our sites from attacks.
Interested in losing an entire afternoon reading about JavaScript? 1. Our journey starts at the hello world page on reactjs.org. But don’t worry, we won’t stay there long, we ended up there by accident looking for the create react app docs. About 1 minute in, we’ll come across the most […]
The WordPress REST API provides us with a way to communicate with our WordPress sites using JSON. To some people, this might not mean much, but to every web and application developer, this is kind of huge. We can use WordPress to easily set up a CMS while taking complete […]