> For the complete documentation index, see [llms.txt](https://docs.ionicfirebaseapp.com/restaurantbackend/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ionicfirebaseapp.com/restaurantbackend/deployment/heroku-nodejs-api.md).

# Heroku NodeJS Api

It gives detailed information regarding the installation of heroku cli and to deploy NodeJS Api.

## Install Heroku Cli

Once you done all the required changes in finish local setup 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.

{% embed url="<https://devcenter.heroku.com/articles/heroku-cli#download-and-install>" %}

## Check Heroku-CLI installation

```
$ heroku --version
```

{% hint style="info" %}
If above command return the version number of heroku-cli then your heroku cli install and ready for deployment.
{% endhint %}

You need to Login with your heroku credential

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

## Create Heroku app and Deploy&#x20;

1. Login to <https://dashboard.heroku.com> .
2. Create New app&#x20;

![Create heroku app from their dashboard ](https://917048522-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/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.

![Heroku used Git to deploy your script ](https://917048522-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/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)
