aboutsummaryrefslogtreecommitdiff
path: root/index.js
blob: f5f5b4e9783a54cc00d060b76df9cfd0071745fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
var http = require('http');
var fs = require('fs');

const PORT=3000; 

fs.readFile('./index.html', function (err, html) {

    if (err) throw err;    

    http.createServer(function(request, response) {  
        response.write(html);  
    }).listen(PORT);
});