Last Updated: February 25, 2016
·
1.376K
· javierg

Very Simple Node Web Server

Just install connect

npm install connect

server.js

var connect = require('connect');
connect.createServer(
  connect.static(__dirname)
).listen(80);

__dirname will select current dir as root for the web server, you can use any dir you want.