From 1e5b01c4ef57e4fadc55ea1e9b96853b18a07fb8 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Wed, 18 Apr 2018 16:38:03 +0000 Subject: [PATCH] Cleaned up dir structure, added info about working scripts to readme --- README.md | 30 +++++++++++++++---- btcp_basic_node.sh => btcp_explorer_demo.sh | 0 btcp_store_demo.sh | 9 +++--- .../btcp_explorer_upgrade.sh | 0 .../btcp_node_v5.sh | 0 start_v5.sh => experimental/start_v5.sh | 0 6 files changed, 29 insertions(+), 10 deletions(-) rename btcp_basic_node.sh => btcp_explorer_demo.sh (100%) rename btcp_explorer_upgrade.sh => experimental/btcp_explorer_upgrade.sh (100%) rename btcp_node_v5.sh => experimental/btcp_node_v5.sh (100%) rename start_v5.sh => experimental/start_v5.sh (100%) diff --git a/README.md b/README.md index 4f5817f..b381463 100644 --- a/README.md +++ b/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` diff --git a/btcp_basic_node.sh b/btcp_explorer_demo.sh similarity index 100% rename from btcp_basic_node.sh rename to btcp_explorer_demo.sh diff --git a/btcp_store_demo.sh b/btcp_store_demo.sh index 4a914d5..d29f96a 100755 --- a/btcp_store_demo.sh +++ b/btcp_store_demo.sh @@ -1,6 +1,7 @@ #!/bin/bash # !!! EC2 - Make sure port 8001 is in your security group +# Run this in a fresh environment. 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 "2) Just download latest btcpd + btcp-cli binary" echo "" -read -r -p "[1] " response +read -r -p "[1/2] " response case "$response" in [1]) prompt_swapfile clone_and_build_btcp ;; -''' [2]) - fetch_btcp_binaries + #fetch_btcp_binaries ;; -''' *) echo "Neither; Skipped." ;; @@ -253,7 +252,7 @@ echo "cd ~/btcp-explorer; nvm use v4; ./node_modules/bitcore-node-btcp/bin/bitco echo "" echo "To view the explorer - 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" } diff --git a/btcp_explorer_upgrade.sh b/experimental/btcp_explorer_upgrade.sh similarity index 100% rename from btcp_explorer_upgrade.sh rename to experimental/btcp_explorer_upgrade.sh diff --git a/btcp_node_v5.sh b/experimental/btcp_node_v5.sh similarity index 100% rename from btcp_node_v5.sh rename to experimental/btcp_node_v5.sh diff --git a/start_v5.sh b/experimental/start_v5.sh similarity index 100% rename from start_v5.sh rename to experimental/start_v5.sh