25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

server.js 283 B

123456789101112
  1. var express = require('express');
  2. var app = express();
  3. app.use('/dist', express.static(__dirname + '/dist'));
  4. app.get('/', function (req, res) {
  5. res.sendFile(__dirname + '/index.html');
  6. });
  7. app.listen(8080, function () {
  8. console.log('frontend listening on port 8080');
  9. });