Monthly Archives: August 2015

Simple static web server

Using Node.js & Express.js var express = require(“express”); app = express(); app.use(express.static(“.”)); var server = app.listen(80, function () { console.log(“Example app listening at http://%s:%s”, server.address().address, server.address.port); }); Advertisements

Posted in node.js, recipes | Leave a comment