Running EtherDelta Locally on a Mac

in #etherdelta6 years ago (edited)

So... EtherDelta :)

Its always awesome to have an exchange to take profits right after an ICO distribution, but it never seems to be a pleasant experience.

Many people don't realize that EtherDelta can be hosted on their own machine which can really improve the overall experience.

Here are a couple reasons why you may want to do this

  1. Etherdelta certainly can be painful to use at times due to blockchain congestion as well as many users accessing the site. Having your own installation can help make the exchange more responsive.

  2. In light of the recent DNS attack, many users are afraid to use EtherDelta out of fear that they will have their crypto stolen from them. By running EtherDelta locally, you can be assured that DNS attacks will not lead to you losing your crypto.

EtherDelta can be setup to run on on Windows, Linux, or Mac, but this procedure will detail the steps to install on a mac.

There are two ways to go about downloading the source code.

You can either download the zip file, or clone the git repository. The advantage to the zip file is that you don't need to install Brew or Git. The advantage to the Git option is that its very convenient to get updates of the code.

Zip Option:

  1. download the zip - https://codeload.github.com/etherdelta/etherdelta.github.io/zip/master
  2. extract to a location on your hard drive
  3. open a terminal and go to the directory of the extracted zip file (cd etherdelta.github.io)

Git Option:

Here are the packages we are going to install

  • HomeBrew - a package manager that lets us install libraries on your machine
  • Git - a version control system that will allow us to
  1. Install Homebrew
    Paste this in the terminal and run:
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  2. Install Git
    Paste this in the terminal and run:
    brew install git

  3. Clone the repo
    In the terminal navigate to where you want to clone the repo, paste this in the terminal and run:
    git clone https://github.com/etherdelta/etherdelta.github.io.git

  4. switch to the ether delta directory
    cd etherdelta.github.io

Now at this point, whichever path you've chosen, youre now ready to use your local installation.
Because EtherDelta is a web application, you need to run a web server to host the app.

Just run this command within the etherdelta.github.io directory
python -m SimpleHTTPServer

Now youre ready to use ED.

Click on this link http://localhost:8000/index_com.html#PPP-ETH

At this point, you should see EtherDelta in your browser and you can use it just as you would previously. Because the URL is different than what it was before, you will need to re-import your wallets. (They will still be accessible from the "old" URL)

Coin Marketplace

STEEM 0.18
TRX 0.14
JST 0.030
BTC 59367.33
ETH 3172.01
USDT 1.00
SBD 2.43