> For the complete documentation index, see [llms.txt](https://products.monterosa.co/mic/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://products.monterosa.co/mic/developer-guide/building-apps/how-to-build-your-first-app/get-your-app-running-locally.md).

# Get your app running locally

How to get your app running on your local environment

Monterosa / Interaction SDK is tool-agnostic. For simplicity we will be using Vite as a building tool but you can select your preferred tool such as rollup, webpack parcel or esbuild.

Let's start by creating a folder for the app and navigating into it:

```bash
mkdir app
cd app
```

Next, let's initialise the project:

```bash
npm init -y
```

Then, proceed to install Vite:

```bash
npm i vite
```

Create an `index.html` file in the root directory with the following content:

```html
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Monterosa / Interaction Cloud - Hello World</title>
  </head>
  <body>
    <h1 id="title"></h1>
    <div id="app">Sample App</div>
    <script type="module" src="/src/main.js"></script>
  </body>
</html>
```

And an empty JS in `src/main.js`.

Now update `package.json` to add the development and build scripts and to change its type to module:

```json
{
  ...,
  "type": "module",
  "scripts": {
    "dev": "vite",
    "build": "vite build"
  },
  ...,
}
```

You can now launch the app for the first time:

```bash
npm run dev
```

Upon execution, you should see an output like so (please note that your Vite version may vary):

```
  VITE v5.3.1  ready in 123 ms
  ➜  Local:   http://localhost:5173/
  ➜  Network: use --host to expose
  ➜  press h + enter to show help
```

By accessing `http://localhost:5173/`, you can verify that our project template is successfully operational.

<div align="left"><figure><img src="https://2539678054-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq9pQqNk9IovpAN9EXqbX%2Fuploads%2FShaNLx3STEwAudaZnjwF%2Fimage.png?alt=media&amp;token=4ce54141-7065-42a2-b936-6574be9237ab" alt=""><figcaption></figcaption></figure></div>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://products.monterosa.co/mic/developer-guide/building-apps/how-to-build-your-first-app/get-your-app-running-locally.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
