Skip to content

Instantly share code, notes, and snippets.

@innomon
Created July 14, 2018 13:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save innomon/7fc8427bcba1d9d78b107ff28afbb4a6 to your computer and use it in GitHub Desktop.
Save innomon/7fc8427bcba1d9d78b107ff28afbb4a6 to your computer and use it in GitHub Desktop.
Ethlance Local Install

Ethlance Install on VM

ubuntu@qzip-u64-1804:~/ethlance$ pwd
/home/ubuntu/ethlance

git clone https://github.com/district0x/ethlance

install lein https://leiningen.org

sudo apt install leiningen
Install Solc
ubuntu@qzip-u64-1804:~/ethlance$ sudo snap install solc

ubuntu@qzip-u64-1804:~/ethlance$ solc --version
solc, the solidity compiler commandline interface
Version: 0.4.24+commit.e67f0147.Linux.g++
ubuntu@qzip-u64-1804:~/ethlance/ethlance$ lein auto compile-solidity

install & start Ganache

npm install -g ganache-cli
ganache-cli --port 8549
npm install -g ganache-cli
Run testrpc
ubuntu@qzip-u64-1804:~/ethlance/ethlance$ ganache-cli --port 8549

Ganache CLI v6.1.0 (ganache-core: 2.1.0)

Listening on localhost:8549
lein repl
(require 'figwheel-sidecar.repl-api)
(figwheel-sidecar.repl-api/start-figwheel! (figwheel-sidecar.config/fetch-config))
(figwheel-sidecar.repl-api/cljs-repl)
lein clean && lein cljsbuild once min
Run the code on a local http server
sudo setcap CAP_NET_BIND_SERVICE=+eip /home/ubuntu/httpdbg
/home/ubuntu/ethlance/ethlance/resources/public
~/httpdbg --root=. --port=80

Resources

In Ethlance project.cji

line 62: added

[org.clojure/tools.nrepl "0.2.11"]
/home/ashish/ABLabs/Dev2018/ethlance

In file start-testrepc.sh, replace testrpc with ganache-cli

changed Line 495 :node-url "http://localhost:8549" L 494: :load-node-addresses? true

in file: /home/ashish/ABLabs/Dev2018/ethlance/src/cljs/ethlance/db.cljs change the contract address to newly deployed address.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment