http://stackoverflow.com/questions/6084360/using-node-js-as-a-simple-web-server
You can use Connect and ServeStatic with NodeJS for this:
- Install connect and serve-static with NPM
$ npm install connect serve-static- Create server.js file with this content:
var connect = require('connect');
var serveStatic = require('serve-static');
connect().use(serveStatic(__dirname)).listen(8080);- Run with NodeJS
$ node server.jsYou can now go to http://localhost:8080/yourfile.html