# Setting up Project

## Clone Repo&#x20;

[https://github.com/0chain/zus-example-webapp](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="https://979598987-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNrAZJ0KGiwEbKkbVRYPu%2Fuploads%2FOlOmYR7MtRFhFmlvLtnV%2FScreenshot%202023-02-11%20at%206.41.52%20AM.png?alt=media&#x26;token=80acc7d3-fc20-4012-8ec2-3976a24166f6" alt=""><figcaption><p>Home Page of the App</p></figcaption></figure>



.
