Now, we have most of the pieces in place for web deployment. We will deploy our app to Heroku, a PaaS that supports Node.
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.
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, in your command line, type the following command:
$ gitinit
After you have initialized Git, you'll want to add all your files and commit them to your repo:
$ git add . $ git commit -m "initil commit"
That's it for now.