Oh Snap!

Please turnoff your ad blocking mode for viewing your site content

Hit enter after type your search item

Node.js Express Bulk Domain or Website Validator Checker Full Web App or Project in Javascript Full Tutorial 2020

/
/
/
172 Views

 

 

Welcome folks today in this tutorial we will be building a bulk domain or website validator checker in node.js and express. For this we will be using a node.js library called as bulk-email-verifier. All the source code of the app is given below

 

 

 

Live Demo

 

 

You can see the live demo of the bulk domain checker here

 

 

Get Started

 

 

In order to get started you need to install the dependencies

READ  How to Preview Image Before Upload Using Javascript

 

npm init -y

 

npm i express

 

npm i ejs

 

npm i bulk-email-verifier

 

 

Now you need to make the bulkdomainchecker.ejs file inside the views directory and copy paste the following code

 

views/bulkdomainchecker.ejs

 

<div class="container">
          <h1 class="text-center">
              Bulk Vaild Domain Name Checker Online
          </h1>
          <form action="/bulkdomainchecker" method="post">
            <div class="form-group">
        <label for="string">Bulk Domains:</label>
                <textarea class="form-control" cols="20" rows="10" name="domain" placeholder="Enter Domains" id="inputtextarea" required></textarea>
            </div>
            <div class="form-group">
                <button id="button" class="btn btn-block btn-danger">
                    Verify Domain
                </button>
            </div>
        
</form>

  <table class="table table-striped">
    <thead>
      <tr>
        <th>Verified Sites</th>
      </tr>
    </thead>
    <tbody>
      <%if(flag){%>
     
      <%for(var i=0; i<text.verified.length; i++) {%>
        <tr>
        <td><%=text.verified[i]%><td>
        </tr>
      <%}%>


      
     
      <%}%>
    </tbody>
  </table>

<table class="table table-striped">
    <thead>
      <tr>
        <th>UnVerified Sites</th>
      </tr>
    </thead>
    <tbody>
      <%if(flag){%>
      
      <%for(var i=0; i<text.unverified.length; i++) {%>
        <tr>
        <td><%=text.unverified[i]%></td>
        </tr>
      <%}%>
      
      <%}%>
    </tbody>
  </table>
        <br><br>
        <%-include('./partials/services');%>
        <%-include('./partials/jumbotron');%>
      </div>
</body>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
</html>

 

READ  Angular 9/10 Drag and Drop Multiple Files Upload to Firebase Storage Using AngularFire2 Full Project

 

 

Now you need to make the index.js file and copy paste the following code

 

 

const express = require('express')

const app = express()

const verify = require('bulk-email-verifier')

const bodyParser = require('body-parser')

app.use(bodyParser.json())

app.use(bodyParser.urlencoded(extended:false))

app.get('/bulkdomainchecker',(req,res) =>{


res.render('bulkdomainchecker',{title:'FREE Bulk Domain Name or Website Validator Checker Online Tool - Free Bulk Domain Validator or Validation Checker Tool - FreeMediaTools.com',text:'',flag:false})

})


app.post('/bulkdomainchecker',(req,res) => {

var domains = req.body.domain
console.log(domains)

var lines = domains.split(/\n/);
  var output = [];
  var outputText = [];
  for (var i = 0; i < lines.length; i++) {
    // only push this line if it contains a non whitespace character.
    if (/\S/.test(lines[i])) {
      outputText.push('"' + lines[i].trim() + '"');
      output.push(lines[i].trim());
    }
  }
  console.log(output);


verify.verifyDomainsMX(output).then(function(response) {
    console.log('Domains Status: ', response);
    res.render('bulkdomainchecker',{title:'FREE Bulk Domain Name or Website Validator Checker Online Tool - Free Bulk Domain Validator or Validation Checker Tool - FreeMediaTools.com',text:response,flag:true})
});


})

app.listen(5000)

 

READ  Node.js Express Word Document DOCX or DOC to PDF Converter Full App Using LibreOffice Library 2020

 

 

Screenshot

 

 

 

 

 

Leave a Comment

Your email address will not be published. Required fields are marked *

This div height required for enabling the sticky sidebar
Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views :