Prerequisites
Before you start the process, you will need a machine running a Linux/Unix distribution such as Ubuntu or macOS, a code editor/IDE with Node.js installed on it and a basic working knowledge of Node.js.
Creating a TCP Server
To begin, create a directory where you would like to store your application. For this tutorial, we will create our application in ~/nodejs-tcp-app
.