You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314
  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. });