<p>Tornado Cash protocol can be launched locally on your computer through a minified User Interface version made available by the core developers team.</p>
<h3 id="step-1-clone-the-github-repository-on-your-computer">Step #1: Clone the Github repository on your computer</h3>
<p>By opening your Command Line Interface, you can run the following commands to, first, clone the repository, then go inside the newly copied folder:</p>
<pre><code>git clone https://github.com/tornadocash/ui-minified.git
cd ui-minified</code></pre>
<h3 id="step-2-serve-the-folder-with-your-favorite-http-server">Step #2: Serve the Folder with Your Favorite HTTP Server</h3>
<pre><code>python -m SimpleHTTPServer 8080</code></pre>
<p>You can obviously use any other http web server, such as<a href="https://www.npmjs.com/package/http-server" target="_blank" rel="noopener noreferrer"> npmjs.com/package/http-server</a>.</p>
<h3 id="step-3-run-the-ui-on-localhost-on-your-favorite-web-browser">Step #3: Run the UI on Localhost on your Favorite Web Browser</h3>
<p>To finish, you just need to run &lt;http://localhost:8080&gt; on your Web Browser &amp; let the magic happens 🪄</p>
<h2 id="running-a-tor-service">Running a TOR service</h2>
<p>If you wish to serve tornado cash UI on an .onion domain, there is an easy way to do it using docker-compose.</p>
<ul><li>You need to paste the following into <code>docker-compose.yml</code></li></ul>
<pre><code>version: '2'
​
services:
  tornado_ui:
    image: tornadocash/ui
    restart: always
    container_name: tornado_ui
  watchtower:
    image: v2tec/watchtower
    restart: always
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    command: --interval 60 tornado_ui
  tor:
    image: strm/tor
    restart: always
    depends_on: [ tornado_ui ]
    environment:
      LISTEN_PORT: 80
      REDIRECT: tornado_ui:80
      # Generate a new key with
      # docker run --rm --entrypoint shallot strm/tor-hiddenservice-nginx ^torn
      PRIVATE_KEY: |
        -----BEGIN RSA PRIVATE KEY-----
        ...
        -----END RSA PRIVATE KEY-----</code></pre>
<ul><li>Then, just run the following command:<code>docker-compose up -d</code></li></ul>
<p>Enjoy your Tornado Cash UI 🌪</p>
<p><em>This tutorial is inspired from the</em><a href="https://github.com/tornadocash/ui-minified/blob/gh-pages/README.md" target="_blank" rel="noopener noreferrer"> <em>README.md document</em></a> <em>present in the Github repository.</em></p>
