# Run API

You need to follow this command to run API, Once API runs you can use API endpoint in your app or dashboard.

```
$ cd api
$ npm install
$ npm run start // For development
```

You can also run this API with the help of [nodemon](https://nodemon.io/). You can install nodemon globally on your machine and just run nodemon command in API directly and API will start default port on 3000.

You can deploy this API to any server like Heroku, Digital Ocean, AWS and map with your Domain or IP and add an API endpoint to the mobile app, web app and dashboard.

### Release build

To create a release build run the following command.

```
npm run start:prod // For production
```


---

# 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/multi-location-grocery/api-backend-1/run-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.
