Skip to content

Commit

Permalink
Add app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hai5nguy committed Oct 19, 2017
1 parent 7da02c8 commit 6594b33
Show file tree
Hide file tree
Showing 14 changed files with 30,157 additions and 3,429 deletions.
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: node app.js
16 changes: 16 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const express = require('express');
const app = express();

// app.get('/', function (req, res) {
// res.send('Hello World!');
// });

app.use('/', express.static(__dirname + '/frontend/dist'));



var port = process.env.PORT || 3000;
app.listen(port, function () {
console.log('Server Online');
});

Loading

0 comments on commit 6594b33

Please sign in to comment.