Last active
March 17, 2017 13:14
-
-
Save inotives/aa6f4bda4a69e349bfb8 to your computer and use it in GitHub Desktop.
express static server template
This file contains hidden or 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
var express = require('express'); | |
var app = express(); | |
var port = 1314; | |
app.use(express.static('public')); | |
app.listen(port, function() { | |
console.log('Server started and listening to::'+port); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment