Cleaned up dir structure, added info about working scripts to readme
This commit is contained in:
parent
9f60d72f53
commit
1e5b01c4ef
30
README.md
30
README.md
|
@ -1,9 +1,29 @@
|
||||||
# bitcore-btcp
|
# bitcore-install
|
||||||
|
|
||||||
To build and install Bitcoin Private, [bitcore-node-btcp](https://github.com/BTCPrivate/bitcore-node-btcp) and its dependencies, and the bitcoind + [insight-api-btcp](https://github.com/BTCPrivate/insight-api-btcp) + [insight-ui-btcp](https://github.com/BTCPrivate/insight-ui-btcp) services:
|
### Vendor backend samples for BTCP (Javascript, Bitcore)
|
||||||
|
|
||||||
`./btcp-explorer.sh`
|
Run any one of these in a fresh Ubuntu VM to get started.
|
||||||
|
|
||||||
To run:
|
`btcp_store_demo.sh` - Creates a bitcore fullnode configured for `store-demo`, as well as block explorer + api
|
||||||
|
|
||||||
|
`btcp_explorer_demo.sh` - Creates a bitcore fullnode configured for block explorer + api (`insight-ui-btcp` and `insight-api-btcp`)
|
||||||
|
|
||||||
|
`btcp_fetch_wallet.sh` - Acquires `btcpd` and `btcp-cli`, by either fetching the [source on the explorer-btcp branch](https://github.com/BTCPrivate/BitcoinPrivate/tree/explorer-btcp) and building, or downloading the corresponding release binaries
|
||||||
|
|
||||||
|
|
||||||
|
# Related Repos
|
||||||
|
|
||||||
|
- [store-demo](https://github.com/BTCPrivate/store-demo)
|
||||||
|
- [address-watch](https://github.com/BTCPrivate/address-watch)
|
||||||
|
- [bitcore-node-btcp](https://github.com/BTCPrivate/bitcore-node-btcp)
|
||||||
|
- [bitcore-lib-btcp](https://github.com/BTCPrivate/bitcore-lib-btcp)
|
||||||
|
- [bitcore-p2p-btcp](https://github.com/BTCP-community/bitcore-p2p-btcp)
|
||||||
|
- [bitcore-message-btcp](https://github.com/BTCPrivate/bitcore-message-btcp)
|
||||||
|
- [bitcore-build-btcp](https://github.com/BTCPrivate/bitcore-build-btcp)
|
||||||
|
- [insight-ui-btcp](https://github.com/BTCPrivate/insight-ui-btcp)
|
||||||
|
- [insight-api-btcp](https://github.com/BTCPrivate/insight-api-btcp)
|
||||||
|
|
||||||
|
- [Bitcoin Private Daemon + CLI](https://github.com/BTCPrivate/BitcoinPrivate/tree/explorer-btcp)
|
||||||
|
|
||||||
|
Runs with bitcore-node-btcp (fork of bitcore-node v4) on bitcore v3.1. Original work: [str4d/insight-api-zcash](https://github.com/str4d/insight-api-zcash).
|
||||||
|
|
||||||
`./start.sh`
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# !!! EC2 - Make sure port 8001 is in your security group
|
# !!! EC2 - Make sure port 8001 is in your security group
|
||||||
|
# Run this in a fresh environment.
|
||||||
|
|
||||||
install_ubuntu() {
|
install_ubuntu() {
|
||||||
|
|
||||||
|
@ -215,17 +216,15 @@ echo "How would you like to build BTCP (btcpd and btcp-cli):"
|
||||||
echo "1) From source code (takes a long time)"
|
echo "1) From source code (takes a long time)"
|
||||||
echo "2) Just download latest btcpd + btcp-cli binary"
|
echo "2) Just download latest btcpd + btcp-cli binary"
|
||||||
echo ""
|
echo ""
|
||||||
read -r -p "[1] " response
|
read -r -p "[1/2] " response
|
||||||
case "$response" in
|
case "$response" in
|
||||||
[1])
|
[1])
|
||||||
prompt_swapfile
|
prompt_swapfile
|
||||||
clone_and_build_btcp
|
clone_and_build_btcp
|
||||||
;;
|
;;
|
||||||
'''
|
|
||||||
[2])
|
[2])
|
||||||
fetch_btcp_binaries
|
#fetch_btcp_binaries
|
||||||
;;
|
;;
|
||||||
'''
|
|
||||||
*)
|
*)
|
||||||
echo "Neither; Skipped."
|
echo "Neither; Skipped."
|
||||||
;;
|
;;
|
||||||
|
@ -253,7 +252,7 @@ echo "cd ~/btcp-explorer; nvm use v4; ./node_modules/bitcore-node-btcp/bin/bitco
|
||||||
echo ""
|
echo ""
|
||||||
echo "To view the explorer - http://server_ip:8001"
|
echo "To view the explorer - http://server_ip:8001"
|
||||||
echo "To view the store demo in your browser - http://server_ip:8001"
|
echo "To view the store demo in your browser - http://server_ip:8001"
|
||||||
echo "For https, we recommend you route through Cloudflare. bitcore-node also supports it via the config; provide certs."
|
echo "For https, provide certs in the config"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue