We can make a folder just like a web server using nodejsĀ for quick jobs

First we can install connect and expressjs, serve-static with Node.js:

$ npm install connect serve-static

We can make .js file (serve.js) and write the below code in that file:

var connect = require('connect');
var serveStatic = require('serve-static');

Then in cmd, run this file:

$ node server.js

Now we can access the local server in URL:


And can exit by pressing:


1,417 total views, 1 views today