aboutsummaryrefslogtreecommitdiff
path: root/src/server/index.js
blob: 2b85ea5fea4871cb400c63f9a446387fbe0ff8d4 (plain)
1
2
3
4
5
6
7
8
9
10
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}`);
});