# Setting up Project

## Clone Repo&#x20;

<https://github.com/0chain/zus-example-webapp>

## Prerequisites

### Yarn Package Manager

#### Linux&#x20;

Run the following commands :

```
sudo apt update
sudo apt install curl
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt install yarn -y
```

#### Mac

In Mac,yarn can be installed using the Homebrew package manager. To install Yarn on macOS, open a terminal and type:

```
brew install yarn 
```

**Note:** Make sure that Homebrew is installed properly using the command below

```
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 
```

#### Windows&#x20;

Instructions can be found [here](https://phoenixnap.com/kb/yarn-windows)

### Start the sample app :

```
yarn dev
```

Sample Response ;

```
yarn dev
yarn run v1.22.19
warning ../package.json: No license field
$ next dev
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
event - compiled client and server successfully in 381 ms (166 modules)
```

Open [http://localhost:3000](http://localhost:3000/) with your browser to see the result.

### Sample Result

The response will be similat to screenshot below.

<figure><img src="/files/OlYguZ9oA28zDI9Tq4xy" alt=""><figcaption><p>Home Page of the App</p></figcaption></figure>

.


---

# 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-old.zus.network/guides/zus-js-sdk/js-sdk-sample-app/setting-up-project.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.
