aboutsummaryrefslogtreecommitdiff
path: root/src/server/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/index.js')
-rw-r--r--src/server/index.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/server/index.js b/src/server/index.js
new file mode 100644
index 0000000..2b85ea5
--- /dev/null
+++ b/src/server/index.js
@@ -0,0 +1,11 @@
+const express = require('express');
+const path = require('path');
+const app = express();
+
+app.use(express.static(path.join(__dirname, '../../build')));
+
+// Start the server
+const PORT = process.env.PORT || 5000;
+app.listen(PORT, () => {
+ console.log(`App listening on port ${PORT}`);
+});