server.js 244 B

123456
  1. var express = require('express');
  2. var app = express();
  3. var server = require('http').createServer(app);
  4. var port = 8000;
  5. server.listen(port, () => console.log('webserver running on port %d', port));
  6. app.use(express.static(__dirname + '/build'));