# Build UI

***

## Step-by-Step Instructions

1. **Navigate to the Project  "web" Folder**\
   Open your terminal and move to the frontend directory:

   ```
   cd <resource_name>/web
   ```
2. **Install Dependencies**\
   Run the following command to install all required dependencies with [bun](https://bun.com):

   ```
   bun install
   ```
3. **Start the Development Server**\
   To preview the UI and make changes, start the development server:

   ```
   bun run dev
   ```

   Once the development server starts, a local URL (e.g., `http://localhost:5173/`) will appear in the terminal. Open this URL in your browser to preview the Resource.

***

## Building the UI for Production

When you're ready to create the production build:

1. Run the following command to generate the optimized files:

   ```
   bun run build
   ```
2. The built files will be generated in the `dist/` folder located within the `<resource_name>/web/` directory.

***

For further help, feel free to reach out via our [Discord](https://discord.gg/jAnEnyGBef).

***


---

# 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://cloud-resources.gitbook.io/docs/guides/build-ui.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.
