Return to Snippet

Revision: 63663
at May 27, 2013 11:34 by ironicnet


Initial Code
//Remember to do a basic "npm install connect" before executing
var connect = require('connect');
var port = 3000;
connect.createServer(
    connect.static(__dirname)
).listen(port);

console.info("Listening port " +  port.toString() +  " from: " + __dirname);

Initial URL

                                

Initial Description

                                

Initial Title
Simple File Http Server in NodeJS with Connect

Initial Tags
server

Initial Language
JavaScript