initial commit ;)

This commit is contained in:
Will Baumbach
2020-04-21 20:51:21 -04:00
parent ec9f05e7e1
commit 917d369990
71 changed files with 382 additions and 38 deletions

16
server.js Normal file
View File

@@ -0,0 +1,16 @@
//Install express server
const express = require('express');
const path = require('path');
const app = express();
// Serve only the static files form the dist directory
app.use(express.static('./dist/{{your-app-name}}'));
app.get('/*', function(req,res) {
res.sendFile(path.join(__dirname,'/dist/{{your-app-name}}/index.html'));
});
// Start the app by listening on the default Heroku port
app.listen(process.env.PORT || 8080);