Here is a simple installation script for BarterDEX with only electrum coins, no wallets and no blockchains needed.


##nanomsg##


cd

git clone https://github.com/nanomsg/nanomsg


Screen Shot 2017-09-28 at 6.28.51 PM.png


cd nanomsg 


Screen Shot 2017-09-28 at 6.29.34 PM.png


cmake . -DNN_TESTS=OFF -DNN_ENABLE_DOC=OFF


Screen Shot 2017-09-28 at 6.30.22 PM.png


make -j4


Screen Shot 2017-09-28 at 6.30.51 PM.png


sudo make install 


Screen Shot 2017-09-28 at 6.31.24 PM.png


sudo ldconfig


Screen Shot 2017-09-28 at 6.32.04 PM.png


## marketmaker ##

cd

git clone https://github.com/jl777/SuperNET


Screen Shot 2017-09-28 at 6.33.25 PM.png


cd SuperNET/iguana


Screen Shot 2017-09-28 at 6.35.07 PM.png


git checkout spvdex


Screen Shot 2017-09-28 at 6.46.40 PM.png


cd exchanges


Screen Shot 2017-09-28 at 6.47.07 PM.png


./install


Screen Shot 2017-09-28 at 6.48.01 PM.png


cd ../dexscripts


Screen Shot 2017-09-28 at 6.49.18 PM.png


echo "export passphrase=\"`head -c 32 /dev/urandom | base64`\"" > passphrase

chmod 0600 passphrase


Screen Shot 2017-09-28 at 6.50.08 PM.png


./client


Screen Shot 2017-09-28 at 6.50.47 PM.png


# now better continue in another ssh session to create the userpass

cd ~/SuperNET/iguana/dexscripts


Screen Shot 2017-09-28 at 6.51.45 PM.png


echo "export userpass=\"`./inv | cut -d \"\\"\" -f 4`\"" > userpass\

chmod 0600 userpass


Screen Shot 2017-09-28 at 6.53.52 PM.png


# create a file enable_my with the content from

http://pad.supernet.org/electrum-servers

nano enable_my


Screen Shot 2017-09-28 at 6.56.34 PM.png


# enable the above electrum coins


chmod 755 enable_my


Screen Shot 2017-09-28 at 6.57.19 PM.png


./enable_my


# ready, you can now execute commands like ./getcoins ./inventory ./orderbook ./buy and so on