aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-01-24 13:11:13 -0800
committerAdam Soltys <[email protected]>2023-01-24 13:11:13 -0800
commit94584ff57ba86cbb2a6affad29a1efe62dfede99 (patch)
tree8e9a35dfff6956191cebf4cc5e06ba1fd850d179
parent692315c0d4259a274322ca579a7b6118d033bf7a (diff)
downloadcoinos-server-94584ff57ba86cbb2a6affad29a1efe62dfede99.tar.gz
coinos-server-94584ff57ba86cbb2a6affad29a1efe62dfede99.zip
readme update
-rw-r--r--README.md38
-rw-r--r--sampledata/bitcoin/bitcoin.conf (renamed from sampleconfig/bitcoin/bitcoin.conf)0
-rw-r--r--sampledata/index.js (renamed from sampleconfig/index.js)0
-rw-r--r--sampledata/lightning/config (renamed from sampleconfig/lightning/config)0
4 files changed, 5 insertions, 33 deletions
diff --git a/README.md b/README.md
index 699bd928..ae2b09ec 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,8 @@
# coinos-server
-Coinos is a bitcoin wallet app that supports payments over the <a href="https://bitcoin.org">bitcoin</a>, <a href="https://blockstream.com/liquid/">liquid</a> and <a href="http://lightning.network/">lightning</a> networks. Try it out at <a href="https://coinos.io/">coinos.io</a>.
+Coinos is a bitcoin wallet app that supports payments over the <a href="https://bitcoin.org">bitcoin</a> and <a href="http://lightning.network/">lightning</a> networks. Try it out at <a href="https://coinos.io/">coinos.io</a>.
-This repository contains the code for the backend API server which is implemented as a NodeJS application. The code for the frontend UI is tracked separately <a href="https://github.com/asoltys/coinos.io">here</a>.
+This repository contains the code for the API server. The frontend code is at <a href="https://github.com/coinos/coinos-ui-v2">https://github.com/coinos/coinos-ui-v2</a>
## Install
@@ -11,39 +11,11 @@ The follow commands will set up bitcoin, liquid and lightning nodes in regtest m
```bash
git clone https://github.com/coinos/coinos-server
cd coinos-server
-cp -r sampleconfig config
cp -r sampledata data
-mkdir uploads
-sudo chown $(id -u):$(id -g) config/liquid
-sudo chown $(id -u):$(id -g) config/bitcoin
-cp .env.sample .env
-cp fx.sample fx
-docker network create net --gateway 172.18.0.1 --subnet 172.18.0.0/16
docker run -it -v $(pwd):/app --entrypoint pnpm asoltys/coinos-server i
docker-compose up -d
-docker exec -i maria mysql -u root -ppassword < db/schema.sql
-docker exec -it bitcoin bitcoin-cli createwallet coinos
-docker exec -it bitcoin bitcoin-cli rescanblockchain
-docker exec -it bitcoin bitcoin-cli generatetoaddress 500 $(docker exec -it bitcoin bitcoin-cli getnewaddress "" "p2sh-segwit")
-docker exec -it liquid elements-cli createwallet coinos
-docker exec -it liquid elements-cli rescanblockchain
-docker exec -it liquid elements-cli sendtoaddress AzpsKhC6xE9FEK4aWAzMnbvueMLiSa5ym1xpuYogFkHzWgMHSt8B79aNNbFppQzCSQ2yZ9E4nL6RQJU7 1000000
-docker exec -it liquid elements-cli generatetoaddress 1 AzpsKhC6xE9FEK4aWAzMnbvueMLiSa5ym1xpuYogFkHzWgMHSt8B79aNNbFppQzCSQ2yZ9E4nL6RQJU7
-curl localhost:3119/register -H "content-type: application/json" -d '{"user": { "username": "coinosfees", "password": "password"}}'
+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")
```
-After successful creation of all docker containers coinos ui will be available at http://localhost:8085 and coinos server will be available at http://localhost:3119
-
-### License
-
-This code is [licensed]. Coinos is free for personal use. Anyone can fork as long as it stays AGPLv3.
-
-To purchase a commercial license or to inquire about customized, managed instances - please reach out to us at [[email protected]]
-
-
-[Config changes]:(#config-changes)
-[config/lnd/lnd.conf]:./sampleconfig/lnd/lnd.conf
-[pwd file]:./sampleconfig/lnd/pwd
-[licensed]:./LICENSE.md
-[generate some BTC]:./doc/fund-server-bitcoin-cli.md
diff --git a/sampleconfig/bitcoin/bitcoin.conf b/sampledata/bitcoin/bitcoin.conf
index 5da37e5a..5da37e5a 100644
--- a/sampleconfig/bitcoin/bitcoin.conf
+++ b/sampledata/bitcoin/bitcoin.conf
diff --git a/sampleconfig/index.js b/sampledata/index.js
index 8fcb0a6f..8fcb0a6f 100644
--- a/sampleconfig/index.js
+++ b/sampledata/index.js
diff --git a/sampleconfig/lightning/config b/sampledata/lightning/config
index 9ac922ba..9ac922ba 100644
--- a/sampleconfig/lightning/config
+++ b/sampledata/lightning/config