Deploy online

Nelisa wants to see her statistics on a web page from her smartphone.

The Heroku deployment process is built on top of git. To deploy there you need to add Heroku as a git remote (so far we’ve been using GitHub as the origin remote). The Heroku documentation will guide you through the required steps.

Please note:

//set the port number to an existing environment variable PORT or default to 5000
app.set('port', (process.env.PORT || 5000));
//start the app like this:
app.listen(app.get('port'), function() {
  console.log('Node app is running on port', app.get('port'));
});

Deploy your Express application online using Heroku.

Learning areas