use express server

This commit is contained in:
patarapolw committed 2019-08-14 08:40:35 +07:00
1 parent 48cbaf1672
commit a10e7faa17
7 files changed
+835 -10

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
const express = require("express");
const app = express();
const port = process.env.PORT || 5000;
app.use(express.static("public"));
app.listen(port, () => {
console.log(`Server running at http://localhost:${port}`);
});