title: create server in 'node.js' VS 'express.js'
body: <p><strong>Hi all, I am new to node.js and express.js</strong></p>
  <p>I am having little bit confusion on creating server on node.js and express.js.</p>
  <p>In Node.js we use the <strong>http module</strong> to create a server.</p>
  <p>where as in express we <strong>don't use any http module</strong>, still we are able to create a server.
  How server is created here ? Is app.get() is creating it ?</p>
  <p>I tried to google the difference but couldn't get the right explanation, pls someone help me here or <strong>share a link for a document</strong> so, I can understand it better.</p>
  <pre><code>// creating server using Node.js
  
  var http = require('http');
  var fs = require('fs'); 
  
  var htmlData;
  
  fs.readFile('index.html',(err, data)=&gt;{
    if(err) throw err;
      htmlData = data;
  });
  
   
  http.createServer(req, res) {
        res.writeHead(200, {'Content-Type': 'text/html'});
        res.write(htmlData); //read the file &amp; write the data content
        res.end();
    }).listen(8000,()=&gt;{console.log(&quot;PORT is 8000&quot;)}); 
  
  
  
  
  // creating server using Express.js
  
  const express = require('express');
  const fs =require('fs');
  const app = express();
  
  let htmlData;
  
  fs.readFile('index.html','utf-8',(err,data)=&gt;{
      htmlData = data;
  })
  
  app.get('/',(req,resp)=&gt;{
      resp.writeHead(200,{'content-type':'text/html'}).write(htmlData).end();
  }).listen(8000);
  </code></pre>