sensortoy-app/index.js
Martin Donnelly 9b5925625d init
2016-05-27 09:51:36 +01:00

15 lines
342 B
JavaScript

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'));
});