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
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.