Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
var express = require('express');
var path = require('path');
const portNumber = 80;
var app = express();
// Add static path to angular application
app.use(express.static(path.join(__dirname, './dist')));
// Set app port to listen
app.listen(portNumber, function() {
console.log('Server started on port: ' + portNumber);
});
// Declare get request for app home page
app.get('*', function(req, res) {
res.sendFile('index.html', { root: path.join(__dirname, './dist/')});
});