Run a server from Node.js
Step 1: Download and install Node.js from https://nodejs.org/en/ Step 2: Launch node from command prompt and verify it has installed correctly Step 3: Create a new file server.js as follows: var http = require('http'); var fs = require('fs'); var url = require('url'); http.createServer( function (request, response) { var pathname = url.parse(request.url).pathname; fs.readFile(pathname.substr(1), function (err, data) { if (err) { console.log(err); response.writeHead(404, {'Content-Type': 'text/html'}); response.write(err.toString()); }