# Heroku NodeJS Api

## Install Heroku Cli <a href="#install-heroku-cli" id="install-heroku-cli"></a>

Once you done all the required changes in finish local seup of the project and ready to production.

You need to install [Heroku-cli](https://devcenter.heroku.com/articles/heroku-cli#download-and-install). It's available for MAC, Linux and Windows machine. Please follow this link and install CLI for deployment.[The Heroku CLI | Heroku Dev CenterHow to download, install, and start using, the Heroku CLI. The Heroku CLI used to be part of the Heroku Toolbelt.devcenter.heroku.com](https://devcenter.heroku.com/articles/heroku-cli#download-and-install)

## Check Heroku-CLI installation <a href="#check-heroku-cli-installation" id="check-heroku-cli-installation"></a>

```
$ heroku --version
```

If above command return the version number of heroku-cli then your heroku cli install and ready for deployment.

You need to Login with your heroku credential

```
$ heroku login // It will ask your heroku Email / pass 
```

## Create Heroku app and Deploy  <a href="#create-heroku-app-and-deploy" id="create-heroku-app-and-deploy"></a>

1. Login to [https://dashboard.heroku.com](https://dashboard.heroku.com/) .
2. Create New app

![Create heroku app from their dashboard](https://gblobscdn.gitbook.com/assets%2F-LC94KDKiVaEQxG_b57S%2F-LkNbz19ls6wYeeCjCxN%2F-LkOnCf_tfE40gvabkqP%2FImage%202019-07-22%20at%206.38.29%20PM.png?alt=media\&token=a948c4d9-b892-4771-9a08-ff049c05984e)

Once app created go to the deploy Tab and you can see your app git info that required app to deploy.

![](https://gblobscdn.gitbook.com/assets%2F-LC94KDKiVaEQxG_b57S%2F-LkNbz19ls6wYeeCjCxN%2F-LkOnqk-I-tj6feBbALM%2FImage%202019-07-22%20at%206.37.25%20PM.png?alt=media\&token=fe3063e7-2733-4ec2-98c5-69cf6a788266)
