Created
July 8, 2015 19:32
-
-
Save JesterXL/5f37d74d1007d2170501 to your computer and use it in GitHub Desktop.
Simple Express 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
console.log('Loading express server...'); | |
var path = require('path'); | |
var express = require('express'); | |
var app = express(); | |
app.use('/', express.static('./')); | |
app.use('/bower_components', express.static('bower_components')); | |
app.use('/node_modules', express.static('node_modules')); | |
var port = 8628; | |
app.listen(port, function() | |
{ | |
console.log('Demo server started on port ' + port); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment