diff options
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/index.js | 11 |
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}`); +}); |