Skip to content

Instantly share code, notes, and snippets.

@TheTrunk
Last active December 15, 2017 12:59
Show Gist options
  • Save TheTrunk/935000778625101109bd9923f568e50e to your computer and use it in GitHub Desktop.
Save TheTrunk/935000778625101109bd9923f568e50e to your computer and use it in GitHub Desktop.
Test bitcore wallet hush and basically everything connected to it: BWS, BWC
# run all at once command: curl -L https://gist.github.com/TheTrunk/935000778625101109bd9923f568e50e/raw | sh
#it is also to possible to install like this: npm install TheTrunk/hushd-rpc#master
#Be noted that test folders and some documentations are unmodified and may not refer to hush!
#prereq : nodejs npm git and HUSH ofc! To install HUSH go ahead here: https://github.com/MyHush/hush
sudo apt-get install nodejs
sudo apt-get install npm
sudo apt-get install git
#hushd-rpc
cd ~
git clone https://github.com/TheTrunk/hushd-rpc.git
cd hushd-rpc
npm install
#bitcore-message-hush
cd ~
git clone https://github.com/TheTrunk/bitcore-message-hush.git
cd bitcore-message-hush
npm install
#bitcore-p2p-hush
cd ~
git clone https://github.com/TheTrunk/bitcore-p2p-hush.git
cd bitcore-p2p-hush
npm install
#bitcore-node-hush
cd ~
git clone https://github.com/TheTrunk/bitcore-node-hush.git
cd bitcore-node-hush
npm install
cd bin
chmod 777 bitcore-node-hush
./bitcore-node-hush create mynode
cd mynode
../bitcore-node-hush install https://github.com/TheTrunk/insight-api-hush
../bitcore-node-hush install https://github.com/TheTrunk/insight-ui-hush
../bitcore-node-hush install https://github.com/TheTrunk/bitcore-wallet-service-hush
#In folder /bitcore-node-hush/bin/mynode edit file bitcore-node.json: line exec must point to your hushd eg. "exec": "/home/tj/hush/src/hushd"
../bitcore-node-hush start
#insight-api-hush
cd ~
git clone https://github.com/TheTrunk/insight-api-hush.git
cd insight-api-hush
npm install
#insight-ui-hush
cd ~
git clone https://github.com/TheTrunk/insight-ui-hush.git
cd insight-ui-hush
npm install
grunt concat uglify cssmin
#bitcore-build-hush
cd ~
git clone https://github.com/TheTrunk/bitcore-build-hush.git
cd bitcore-build-hush
npm install
#bitcore-lib-hush
cd ~
git clone https://github.com/TheTrunk/bitcore-lib-hush.git
cd bitcore-lib-hush
npm install
gulp browser
#install and run MongoDB
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo service mongod start
#BWS
cd ~
git clone https://github.com/TheTrunk/bitcore-wallet-service-hush.git
cd bitcore-wallet-service-hush
npm install
npm start
#BWC
cd ~
git clone https://github.com/TheTrunk/bitcore-wallet-client-hush.git
cd bitcore-wallet-client-hush
npm install
make
#Bitcore wallet hush
cd ~
git clone https://github.com/TheTrunk/bitcore-wallet-hush.git
cd bitcore-wallet-hush
npm install
#play part
cd bin
./wallet
./wallet create 'my wallet' 2-2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment