> For the complete documentation index, see [llms.txt](https://pangeaswap.gitbook.io/pangeaswap/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pangeaswap.gitbook.io/pangeaswap/en/developers/interacting-with-the-protocol/setting-up-local-test-environment.md).

# Setting up Local Test Environment

For developers who integrate or utilize the Pangea protocol, we have configured a local test environment for the Pangea protocol.

#### Pangea Repository

{% embed url="<https://github.com/pangea-protocol/pangea-core>" %}

### Local Development

#### Install Dependencies

In order to use the package, Node and Yarn, the Package Manager, must be installed first.

```shell
yarn install
```

#### Compile Contracts

After compiling, artifacts and types folders are created.

```shell
yarn build
```

#### Deploy & Run Local Node

Launches a local hard-hat network and deploys the Pangea protocol contract. For the simulation, we first created a MOCK token and a few pools. We hope this makes it easier for you to work on your local test environment.

```shell
yarn hardhat:deploy
```

After distribution, 20 private keys are exposed at the end. KLAY is sent to the address of the corresponding private key, so please use it for testing.

For the convenience of testing, we have developed several commands for calling the contract. Please use it for testing.

{% content-ref url="/pages/MqiKGqWvFERTXAK707Jp" %}
[Test env. commands](/pangeaswap/en/developers/interacting-with-the-protocol/setting-up-local-test-environment/test-env.-commands.md)
{% endcontent-ref %}

#### Run Tests

```shell
yarn test
```

#### Run test Coverage

```shell
yarn coverage
```
