Skip to content

Instantly share code, notes, and snippets.

View devinflydrop's full-sized avatar

DevInFlyDrop devinflydrop

  • haxtivitiez
View GitHub Profile
@cuth
cuth / serve.js
Created April 14, 2014 17:21
Run a local express server on the current directory's static files using node
var host = "127.0.0.1";
var port = 1337;
var express = require("express");
var app = express();
app.use('/', express.static(__dirname + '/'));
app.listen(port, host);
console.log('Running server at http://localhost:' + port + '/');