This commit is contained in:
Mars Hall
2017-01-30 14:29:39 -08:00
commit 0f8d98090a
16 changed files with 1554 additions and 0 deletions

14
server/index.js Normal file
View File

@@ -0,0 +1,14 @@
const express = require('express');
const app = express();
const PORT = process.env.PORT || 5000;
app.use(express.static(__dirname + '/../react-ui/build'));
app.get('/api', function (req, res) {
res.set('Content-Type', 'application/json');
res.send('{"message":"Hello from the custom server!"}');
});
app.listen(PORT, function () {
console.log(`Listening on port ${PORT}`);
});