update README

This commit is contained in:
canove
2020-08-21 11:09:18 -03:00
parent 5c6a6b2b6e
commit 9a9c2f8e40
2 changed files with 227 additions and 1 deletions

9
frontend/server.js Normal file
View File

@@ -0,0 +1,9 @@
//simple express server to run frontend production build;
const express = require("express");
const path = require("path");
const app = express();
app.use(express.static(path.join(__dirname, "build")));
app.get("/*", function (req, res) {
res.sendFile(path.join(__dirname, "build", "index.html"));
});
app.listen(3333);