var express = require('express'), path = require('path'), http = require('http'); var app = express(); app.set('port', process.env.PORT || 8088); app.use(express.static(path.join(__dirname, 'app'))); /** * create the server */ app.listen(app.get('port'), function () { console.log('Toy Server listening on ' + app.get('port')); });