aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md6
-rw-r--r--setup.sh3
2 files changed, 4 insertions, 5 deletions
diff --git a/README.md b/README.md
index 4e6179ab..9215afae 100644
--- a/README.md
+++ b/README.md
@@ -6,13 +6,9 @@ This repository contains the code for the API server. The frontend code is at <a
## Install
-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 <a href="https://docs.docker.com/get-docker/">docker</a>.
+Make sure you have <a href="https://docs.docker.com/get-docker/">docker</a> then run the setup script:
```bash
-cp -r sampledata data
-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
index d18b5dba..1f527f88 100644
--- a/setup.sh
+++ b/setup.sh
@@ -1,3 +1,6 @@
+cp -r sampledata data
+docker compose up -d
+docker run -it -v $(pwd):/app --entrypoint pnpm cs i
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")