npm install connect
Create file server.js
var connect = require('connect');
connect.createServer(
connect.static(__dirname)
).listen(8080);
Run using node:
node server.js
npm install connect
Create file server.js
var connect = require('connect');
connect.createServer(
connect.static(__dirname)
).listen(8080);
Run using node:
node server.js
Note that this has changed as of Connect 3.x
See http://stackoverflow.com/a/24347442/49359