# How To Run

***How to run Node JS API :***&#x20;

Open the Terminal and navigate to the project folder ( API directory ) and install NodeJS dependencies :

```
$ npm install
```

Once both dependencies are installed successfully you can run the app in browser window with :

```
$ nodemon
```

* Once the nodeJS dependencies and MongoDB connection set. It will open your web browser window and if didn't open **localhost:8000** and you can see swagger api like the demo.
* **Common Error :** You may receive **node-gyp** error once you are run this app. This issue mostly comes on windows machine. You may need visual studio on window machine to fix this issue.

***How to run Dashboard :***

**Run in Web browser**

Open your terminal and navigate to the project folder ( webapp ) and install NodeJS dependencies :

```
** $ npm install **
```

Once node dependencies are installed successfully you can run the app in browser window with :

```
** $ ng serve **
```

Production Build

```
** ng build --prod **  
```

Once you run it will create production build that you can deploy on any hosting that support html hosting but i suggest to use Firebase hosting as it easier to manage.

&#x20;If there is any issue please google it or if you do not  find any solution report us , we will look into it.


---

# 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/how-to-run.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.
