marcandrewb
12/1/2015 - 4:10 PM

Simple Static Node Server

Simple Static Node Server

var connect = require('connect'),
    http = require('http'),
    serveStatic = require('serve-static'),
    app = connect(),
    server;

app.use(serveStatic("."));

server = http.createServer(app);

server.listen(5000, function() {
    console.log('listening on port 5000');
});
npm install connect
npm install serve-static