Skip to content

Instantly share code, notes, and snippets.

@RajaJaganathan
Created May 4, 2015 05:29
Show Gist options
  • Save RajaJaganathan/1928c36e842b89fe30d8 to your computer and use it in GitHub Desktop.
Save RajaJaganathan/1928c36e842b89fe30d8 to your computer and use it in GitHub Desktop.
Serve the static/public file through node js server.
(function() {
'use strict';
var express = require('express');
var app = express();
app.use(express.static('public'));
app.use("/", express.static(__dirname));
app.listen(3033);
console.log("listening http://localhost:3033");
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment