To show how to deploy a nodejs app, we are first going to create a sample application for a better understanding of the process. I have created a directory/folder “example” for my sample project. Before procceding, make sure you have installed nodejs and git on your system. Now, open the command line and cd inside the example(or whatever is the name of your project folder) directory Follow the following steps to create the sample application for this tutorial STEP 1: Create a “package.json” file using the following command npm init STEP 2: Create a file called “app.js” inside your project folder STEP 3: Create a html file “head.html” Fill the file with the following content This will be the homepage of our app which is connected to another page via hyperlink. STEP 4: Create another html file “tail.html” Content of tail.html is STEP 5: Open “app.js” file created in step 2 and copy paste the following code in it Now, the above code displays the “head.html” file as the homepage which is connected to “tail.html” STEP 6: Open the terminal again and write the following command to run the server node app.js