From 232cd9cc16a5aba5e5b2dc5c2c785bebe82cbccd Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 24 Jan 2023 13:32:35 -0800 Subject: simplify install --- README.md | 17 +++++++---------- setup.sh | 3 +++ 2 files changed, 10 insertions(+), 10 deletions(-) create mode 100644 setup.sh diff --git a/README.md b/README.md index ae2b09ec..f8ee2b9f 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,18 @@ # coinos-server -Coinos is a bitcoin wallet app that supports payments over the bitcoin and lightning networks. Try it out at coinos.io. +Coinos is a web-based bitcoin and nostr client. You can use it as a front end to your personal bitcoin and lightning nodes or host a public instance that allows anyone to register with a username and password. Try ours at https://coinos.io -This repository contains the code for the API server. The frontend code is at https://github.com/coinos/coinos-ui-v2 +This repository contains the code for the API server. The frontend code is at https://github.com/coinos/coinos-ui ## Install -The follow commands will set up bitcoin, liquid and lightning nodes in regtest mode, along with a coinos app server, database, and front end UI. You'll need to have docker installed as a pre-requisite. +The following commands will set up bitcoin and lightning nodes in regtest mode, along with a coinos api server and database. You'll need to have docker. ```bash -git clone https://github.com/coinos/coinos-server -cd coinos-server cp -r sampledata data -docker run -it -v $(pwd):/app --entrypoint pnpm asoltys/coinos-server i -docker-compose up -d -docker exec -it bc bitcoin-cli createwallet coinos -docker exec -it bc bitcoin-cli rescanblockchain -docker exec -it bc bitcoin-cli generatetoaddress 500 $(docker exec -it bitcoin bitcoin-cli getnewaddress "" "p2sh-segwit") +docker compose up -d +docker run -it -v $(pwd):/app --entrypoint pnpm cs i +chmod +x setup.sh +./setup.sh ``` diff --git a/setup.sh b/setup.sh new file mode 100644 index 00000000..d18b5dba --- /dev/null +++ b/setup.sh @@ -0,0 +1,3 @@ +docker exec -it bc bitcoin-cli createwallet coinos +docker exec -it bc bitcoin-cli rescanblockchain +docker exec -it bc bitcoin-cli generatetoaddress 500 $(docker exec -it bitcoin bitcoin-cli getnewaddress "" "p2sh-segwit") -- cgit v1.2.3