neelxie/EpicMailReactJs

View on GitHub
server.js

Summary

Maintainability
A
0 mins
Test Coverage
const express = require('express');
const path = require('path');

const app = express();
const PORT = process.env.PORT || 5000;

app.use(express.static(path.join(__dirname, 'dist')));

app.get('*', function(req, res) {
  res.sendFile(path.join(__dirname, 'dist', 'index.html'));
});

app.listen(PORT);