How to Run WordPress Locally on macOS With Docker Compose

WordPress is a free and open-source content management system that you can use to create websites and blogs. In this article, you will learn how to run WordPress on your Mac device with Docker Compose. Docker Installation The first step is to install Docker on your device. If you already…

How to Store a Javascript Array in localStorage

The localStorage enables you to store data in the browser. The data stored is in the form of key/value pairs and it does not expire when you close the browser. It's also important to note that the localStorage only stores strings. That brings us to the theme…

React Class Components to Functional Components With Hooks

Refactoring React class components to functional components with Hooks is quite a journey. Recently, I had to refactor an entire React application so I want to share my process and learnings. Introduction to React Hooks Functional components use Hooks, so it makes sense to introduce them before going further. React…

iTerm2 + Oh-My-Zsh: Supercharge Your Mac Terminal

If you are using the default terminal on macOS and reading this article, chances are you are dissatisfied with it. I do not blame you, though. The default macOS terminal looks outdated and it also lacks many features. Figure 1 I mean, look at it! It does not look very…

Install a Specific Version of a Node.JS Package

Usually, you install the latest version of a package when you want to use it. But there are circumstances when you might need to install a specific package version. One example would be when the latest changes in a package are not compatible with your code. This article shows you…

Build An E-Commerce Backend With Minimal Code

In the traditional approach to building Full Stack applications, you need to manually build the backend and frontend. Building your backend manually means that you need to decide whether to use REST or GraphQL. Based on what you choose to use, you need to define GraphQL schemas, resolvers, write database…

How to Push Empty Git Commits

Git does not allow commits without messages. Also, to push a new commit to the remote repository, you need to make changes to your project. The question is - how do you push a commit without making any changes? You can do it with the following command: git commit --allow-empty…