Untab for better shell style
This commit is contained in:
parent
b6eb0a1c7d
commit
e3cb219cbf
|
@ -3,13 +3,13 @@
|
|||
# Bitcore v3.1 - BTCP Explorer + Store / AddressWatch Demo
|
||||
|
||||
install_ubuntu() {
|
||||
# Get Ubuntu Dependencies
|
||||
sudo apt-get update
|
||||
# Get Ubuntu Dependencies
|
||||
sudo apt-get update
|
||||
|
||||
sudo apt-get -y install \
|
||||
build-essential pkg-config libc6-dev m4 g++-multilib \
|
||||
autoconf libtool ncurses-dev unzip git python \
|
||||
zlib1g-dev wget bsdmainutils automake
|
||||
sudo apt-get -y install \
|
||||
build-essential pkg-config libc6-dev m4 g++-multilib \
|
||||
autoconf libtool ncurses-dev unzip git python \
|
||||
zlib1g-dev wget bsdmainutils automake
|
||||
|
||||
# Install ZeroMQ libraries (Bitcore)
|
||||
sudo apt-get -y install libzmq3-dev
|
||||
|
@ -63,52 +63,53 @@ install_nvm_npm() {
|
|||
nvm alias default v4
|
||||
}
|
||||
|
||||
# -- Bitcore --
|
||||
install_bitcore() {
|
||||
# Install Bitcore (Headless)
|
||||
npm install BTCPrivate/bitcore-node-btcp
|
||||
|
||||
# Create Bitcore Node
|
||||
./node_modules/bitcore-node-btcp/bin/bitcore-node create btcp-explorer
|
||||
cd btcp-explorer
|
||||
# Install Bitcore (Headless)
|
||||
npm install BTCPrivate/bitcore-node-btcp
|
||||
|
||||
# Install Insight API / UI (Explorer) (Headless)
|
||||
../node_modules/bitcore-node-btcp/bin/bitcore-node install BTCPrivate/insight-api-btcp BTCPrivate/insight-ui-btcp BTCPrivate/store-demo
|
||||
# (BTCPrivate/address-watch)
|
||||
# (mv store-demo lemonade-stand)
|
||||
# Create Bitcore Node
|
||||
./node_modules/bitcore-node-btcp/bin/bitcore-node create btcp-explorer
|
||||
cd btcp-explorer
|
||||
|
||||
# !!! OPTIONAL [TODO present cli options] Install store-demo
|
||||
#cd ~
|
||||
#git clone https://github.com/BTCPrivate/store-demo
|
||||
#cd btcp-explorer/node_modules
|
||||
#ln -s ~/store-demo
|
||||
|
||||
# Install Insight API / UI (Explorer) (Headless)
|
||||
../node_modules/bitcore-node-btcp/bin/bitcore-node install BTCPrivate/insight-api-btcp BTCPrivate/insight-ui-btcp BTCPrivate/store-demo
|
||||
# (BTCPrivate/address-watch)
|
||||
# (mv store-demo lemonade-stand)
|
||||
|
||||
# !!! OPTIONAL [TODO present cli options] Install address-watch
|
||||
#cd ~
|
||||
#git clone https://github.com/BTCPrivate/address-watch
|
||||
#cd btcp-explorer/node_modules
|
||||
#ln -s ~/address-watch
|
||||
# !!! OPTIONAL [TODO present cli options] Install store-demo
|
||||
#cd ~
|
||||
#git clone https://github.com/BTCPrivate/store-demo
|
||||
#cd btcp-explorer/node_modules
|
||||
#ln -s ~/store-demo
|
||||
|
||||
# Create config file for Bitcore
|
||||
# !!! OPTIONAL TODO add store-demo and address-watch to services as specified
|
||||
cat << EOF > bitcore-node.json
|
||||
{
|
||||
"network": "livenet",
|
||||
"port": 8001,
|
||||
"services": [
|
||||
"bitcoind",
|
||||
"insight-api-btcp",
|
||||
"insight-ui-btcp",
|
||||
"store-demo",
|
||||
"web"
|
||||
],
|
||||
"servicesConfig": {
|
||||
"bitcoind": {
|
||||
"spawn": {
|
||||
"datadir": "$HOME/.btcprivate",
|
||||
"exec": "$HOME/BitcoinPrivate/src/btcpd"
|
||||
}
|
||||
|
||||
# !!! OPTIONAL [TODO present cli options] Install address-watch
|
||||
#cd ~
|
||||
#git clone https://github.com/BTCPrivate/address-watch
|
||||
#cd btcp-explorer/node_modules
|
||||
#ln -s ~/address-watch
|
||||
|
||||
# Create config file for Bitcore
|
||||
# !!! OPTIONAL TODO add store-demo and address-watch to services as specified
|
||||
|
||||
cat << EOF > bitcore-node.json
|
||||
{
|
||||
"network": "livenet",
|
||||
"port": 8001,
|
||||
"services": [
|
||||
"bitcoind",
|
||||
"insight-api-btcp",
|
||||
"insight-ui-btcp",
|
||||
"store-demo",
|
||||
"web"
|
||||
],
|
||||
"servicesConfig": {
|
||||
"bitcoind": {
|
||||
"spawn": {
|
||||
"datadir": "$HOME/.btcprivate",
|
||||
"exec": "$HOME/BitcoinPrivate/src/btcpd"
|
||||
}
|
||||
},
|
||||
"insight-ui-btcp": {
|
||||
"apiPrefix": "api",
|
||||
|
@ -119,10 +120,14 @@ install_bitcore() {
|
|||
}
|
||||
}
|
||||
}
|
||||
EOF
|
||||
EOF
|
||||
|
||||
}
|
||||
|
||||
echo "Begin"
|
||||
# Begin
|
||||
echo "Begin Setup."
|
||||
echo \n
|
||||
|
||||
cd ~
|
||||
|
||||
#clone_and_build_btcp
|
||||
|
@ -130,12 +135,11 @@ cd ~
|
|||
#install_nvm_npm
|
||||
|
||||
install_bitcore
|
||||
|
||||
echo "Complete."
|
||||
|
||||
|
||||
echo \n
|
||||
echo "To start the bitcore-node, run (from btcp-explorer):"
|
||||
echo "nvm use v4; ./node_modules/bitcore-node/bin/bitcore-node start"
|
||||
echo "\n"
|
||||
echo \n
|
||||
echo "To view the explorer in your browser - http://server_ip:8001"
|
||||
echo "For https, we recommend you route through Cloudflare."
|
||||
|
||||
echo "For https, we recommend you route through Cloudflare. bitcore-node also supports it via the config; provide certs."
|
||||
|
|
Loading…
Reference in New Issue