sensortoy/localserver.js

17 lines
302 B
JavaScript
Raw Normal View History

2016-06-17 15:50:40 +00:00
var express = require('express');
var path = require('path');
var app = express();
app.use(express.static(path.join(__dirname, 'www')));
/*
App.get('/', function (req, res) {
res.send('Hello World!');
});
*/
app.listen(3000, function() {
console.log('Example app listening on port 3000!');
});