mirror of
https://gitlab.silvrtree.co.uk/martind2000/sensortoy-app.git
synced 2025-01-25 16:26:18 +00:00
15 lines
342 B
JavaScript
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'));
|
|
});
|