# 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
```


---

# 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://pangeaswap.gitbook.io/pangeaswap/en/developers/interacting-with-the-protocol/setting-up-local-test-environment.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.
