# 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)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ionicfirebaseapp.com/readymade-restaurant-app/deployment/heroku-nodejs-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
