> For the complete documentation index, see [llms.txt](https://dev-docs.dcentwallet.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev-docs.dcentwallet.com/dwc/test-environment.md).

# Test Environment

**1. Set up example dapp environment.**

* Build the environment to run the example dapp.

{% embed url="<https://github.com/DcentWallet/dwc-example-dapp>" %}

* Download the related package.

```typescript
npm install
```

* Run the example dapp.

```typescript
npm run start
```

#### 2. Make sure to build the https environment in order to run and test the example dapp in the local environment.

* Download it from ngrok.

{% embed url="<https://ngrok.com/download>" %}

```
ngrok config add-authtoken YOUR TOKEN
ngrok http YOUR PORT

// success //
ngrok                                                                                                                                                         (Ctrl+C to quit)

Session Status                online
Account                       inconshreveable (Plan: Free)
Version                       3.0.0
Region                        United States (us)
Latency                       78.006541ms
Web Interface                 http://127.0.0.1:4040
Forwarding                    https://84c5df439d74.ngrok.io -> http://localhost:8000
```

#### 3. The real development test is available on the page below.

{% embed url="<https://dcentwallet.github.io/dwc-example-dapp/>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://dev-docs.dcentwallet.com/dwc/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.
