# 本地托管的最小化 UI

Tornado Cash 协议可以通过核心开发团队提供的最小化用户界面版本在您的计算机上本地启动。

{% embed url="<https://github.com/tornadocashdev/ui-minified>" %}
Tornado Cash UI Minified
{% endembed %}

#### 步骤＃1：在你的计算机上克隆 Github 存储库 <a href="#step-1-clone-the-github-repository-on-your-computer" id="step-1-clone-the-github-repository-on-your-computer"></a>

通过打开命令行界面，您可以运行以下命令，首先克隆存储库，然后进入新复制的文件夹：

复制

```
1 git clone https://github.com/tornadocashdev/ui-minified.git
2 cd ui-minified
```

#### 步骤2：使用您最喜欢的HTTP服务器提供文件夹服务 <a href="#step-2-serve-the-folder-with-your-favorite-http-server" id="step-2-serve-the-folder-with-your-favorite-http-server"></a>

复制

```
1 python -m SimpleHTTPServer 8080
```

您显然可以使用任何其他 http Web 服务器，例如 [npmjs.com/package/http-server](https://www.npmjs.com/package/http-server)。

#### 步骤＃3：在您最喜欢的 Web 浏览器上的 Localhost 上运行 UI <a href="#step-3-run-the-ui-on-localhost-on-your-favorite-web-browser" id="step-3-run-the-ui-on-localhost-on-your-favorite-web-browser"></a>

最后，你只需要在 Web 浏览器上运行 [http://localhost:8080，让奇迹发生🪄](https://docs-zh.tornadoeth.cash/yi-ban-de/http:/localhost:8080，让奇迹发生🪄)

### 运行 TOR 服务 <a href="#running-a-tor-service" id="running-a-tor-service"></a>

如果您希望在 .onion 域上提供 tornado cash UI，则可以使用 docker-compose 轻松实现。

* 您需要将以下内容粘贴到`docker-compose.ym`

复制

```
1 version: '2'
​
2 services:
3  tornado_ui:
4    image: tornadocashdev/ui
5    restart: always
6    container_name: tornado_ui
7  watchtower:
8    image: v2tec/watchtower
9    restart: always
10    volumes:
11      - /var/run/docker.sock:/var/run/docker.sock
12    command: --interval 60 tornado_ui
13  tor:
14    image: strm/tor
15    restart: always
16    depends_on: [ tornado_ui ]
17    environment:
18      LISTEN_PORT: 80
19      REDIRECT: tornado_ui:80
20      # Generate a new key with
21      # docker run --rm --entrypoint shallot strm/tor-hiddenservice-nginx ^torn
22      PRIVATE_KEY: |
23        -----BEGIN RSA PRIVATE KEY-----
24        ...
25        -----END RSA PRIVATE KEY-----
```


---

# 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-zh.tornadoeth.cash/yi-ban-de/ben-di-tuo-guan-de-zui-xiao-hua-ui.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.
