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.
Written by Javier Guerra
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Server
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#