Created
May 4, 2015 05:29
-
-
Save RajaJaganathan/1928c36e842b89fe30d8 to your computer and use it in GitHub Desktop.
Serve the static/public file through node js server.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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