Node.js Express Domain Age Checker and Domain WHOISINFO Checker Web App Deployed on Website + Source Code 2020

You are currently viewing Node.js Express Domain Age Checker and Domain WHOISINFO Checker Web App Deployed on Website + Source Code 2020

 

 

Welcome folks today in this tutorial we will be building two web apps and we will be deploying it to my website. The names of the web apps are free domain age checker and free domain whoisinfo checker web app respectively. All the source code of the apps are given below.

 

Live Demo of App

 

Live Demo of Domain WHOISINFO Checker

 

Live Demo of Domain Age Checker

 

Get Started

 

In order to get started you need to install the following dependencies inside your node.js project

 

npm init -y

 

npm i express moment whois-json ejs is-valid-domain

 

The list of dependencies are as follows

 

express : Express will be the backend server on which the app lives

 

ejs Next comes the template engine of html which is ejs.

 

whois-json This is the dependency of node which will return the whoisinfo information about the domain which the user will provide inside the json format

 

moment Moment is the date time library for node. With the help of this library we will be calculating the domain age of the website

 

is-valid-domain This is the library from which we know whether the entered domain is valid or not

 

Install all these dependencies with the help of the above command and then open the project inside the visual studio code

 

And now we need to make the index.js file and copy paste the following code to it

 

 

 

 

Now we need to make the templates inside the views folder. So make the views folder inside the root directory and inside it make two files

 

domainwhoisinfo.ejs

 

domainagechecker.ejs

 

domainwhoisinfo.ejs

 

 

 

 

domainagechecker.ejs

 

 

 

 

 

Now inside index.js we will make the post request to get the domain who is info and domain age like this

 

 

 

 

 

Screenshot

 

 

 

 

 

 

Leave a Reply