Skip to content

Commit ae3ebc6

Browse files
Added Bitcore installation script
1 parent bfba21a commit ae3ebc6

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

unix/Explorer/install-insight.sh

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
## Update system
2+
sudo apt-get update
3+
4+
## Install NVM
5+
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
6+
export NVM_DIR="$HOME/.nvm"
7+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
8+
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
9+
10+
## Install Node version 4
11+
nvm install v4
12+
13+
## Dependencies
14+
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils libsodium-dev -y
15+
sudo apt-get install python -y
16+
sudo apt-get install libboost-all-dev -y
17+
sudo apt-get install libzmq3-dev -y
18+
19+
sudo apt-get install software-properties-common -y
20+
sudo add-apt-repository ppa:bitcoin/bitcoin -y
21+
sudo apt-get update
22+
sudo apt-get install libdb4.8-dev libdb4.8++-dev -y
23+
24+
## Clone Bitcore Node
25+
git clone https://github.com/BTHPOS/bitcore-node.git
26+
cd bitcore-node
27+
npm i
28+
29+
## Create Node
30+
cd ~
31+
./bitcore-node/bin/bitcore-node create bitcore-bithereum
32+
33+
## Install Insight
34+
cd bitcore-bithereum
35+
./node_modules/bitcore-node/bin/bitcore-node install https://github.com/BTHPOS/insight.git
36+
./node_modules/bitcore-node/bin/bitcore-node install https://github.com/BTHPOS/insight-api.git
37+
38+
## Staring Insight
39+
./node_modules/bitcore-node/bin/bitcore-node start

0 commit comments

Comments
 (0)