Deploying the application to Heroku

Now, we have most of the pieces in place for web deployment. We will deploy our app to Heroku, a PaaS that supports Node.

Getting ready to use Heroku

There are just a few steps that are required to deploy your application to Heroku. You'll have to install Git, set up a Heroku account, create a new project on Heroku, and then it will be ready for deploying.

Setting up Git

Deployment to Heroku is done using Git, so you will need to have it installed. If you don't already have Git installed, go to https://git-scm.com/book/en/v2/Getting-Started-Installing-Git and follow the instructions for your operating system.

After you have Git installed, you need to initialize a Gitrepository in your giftapp folder. From the root, ...

Get Mastering JavaScript Single Page Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.