sensortoy-app/index.js

15 lines
342 B
JavaScript
Raw Permalink Normal View History

2016-05-27 08:51:36 +00:00
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'));
});