Tag: programming

In this post, we will implement an event driven system in Go. We are going to imagine a fictional application where we want to send out events for when a new account is created and another for when an account is deleted. Let’s assume that the current structure of our program looks like this: working-dir | |__auth.go/ | |__auth.go | |__main.go |__go.mod |__go.sum We would like this system to: Be type safe. No interface{}, no need…

Tailwind CSS is a great CSS framework. Utility first, fully customizable and just a pleasure to use. I had been seeing it around and wanted to try it myself, however the set up instructions can feel a bit tedious, especially if you’re not familiar with all the front-end build tools and CSS preprocessors. So, after going through it myself, I decided to write a guide on the fastest way to set up Tailwind CSS. Prerequisites…

Docker volumes are very useful when we need to persist data in Docker containers or share data between containers. Docker volumes are important because when a Docker container is destroyed, it’s entire file system is destroyed too. So if we want to keep this data, it is necessary that we use Docker volumes. Docker volumes are attached to containers during a docker run command by using the -v flag When Docker Volumes are needed Let’s…

In a previous article, we talked about Docker images but we could only use a small section to talk about Docker containers. Now, let’s go deeper. Docker Containers A Docker container is created from a Docker image. If a Docker image is a recipe, think of the Docker container as the dish that is prepared A container image is a lightweight, stand-alone, executable package of a piece of software that includes everything needed to run…

WordPress is a very popular and flexible Content Management System (CMS). If you build websites, you are likely to have worked with (or had someone ask you to) WordPress. There are several tutorials about how to set up a new WordPress site with docker. Here is a very good one. However, no one really says how to move an existing WordPress site into a docker container. I have several servers on Digital Ocean, Linode and Vultr,…