diff options
| -rw-r--r-- | README.md | 6 | ||||
| -rw-r--r-- | setup.sh | 3 |
2 files changed, 4 insertions, 5 deletions
@@ -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 ``` - @@ -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") |
