pedroeagle/Trabalho-Individual-2020-2

View on GitHub
client/server.js

Summary

Maintainability
A
0 mins
Test Coverage
const
  express = require('express'),
  serveStatic = require('serve-static'),
  history = require('connect-history-api-fallback'),
  port = process.env.PORT || 5000

const app = express()

app.use(history())
app.use(serveStatic(__dirname + '/dist/spa'))
app.listen(port)