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 Update Project Dependencies to the Latest Versions

If you are looking for a quick way to update your project dependencies to the latest versions, you are in the right place. In this article, you will learn how to do it in three steps! Problem Let's say you have a project with a couple of outdated dependencies and…

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 of this…

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…

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…