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

15 lines
326 B

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