No description
Find a file
Jonathan Zernik 9aef37bd71
Update docker compose yaml (#259)
* Use sqlite for squeak node in docker compose

* Include other sqkserver in docker docker-compose

* Use second instance of squeak node in docker compose

* Remove old log line
2020-09-27 14:54:34 -07:00
docker Update docker compose yaml (#259) 2020-09-27 14:54:34 -07:00
frontend Update docker compose yaml (#259) 2020-09-27 14:54:34 -07:00
itests Run codeformat with tox (#258) 2020-09-26 01:51:41 -07:00
proto Fix proto field numbering for buy offer respnose (#242) 2020-08-15 18:49:05 -07:00
squeakserver Run codeformat with tox (#258) 2020-09-26 01:51:41 -07:00
tests Run codeformat with tox (#258) 2020-09-26 01:51:41 -07:00
.dockerignore Add get squeaks for address rpc method (#108) 2020-07-21 16:12:26 -07:00
.gitignore Update makefile. 2020-02-22 19:59:29 -08:00
createdb.sql Fix setting up schema in createdb and postgres params (#189) 2020-07-31 22:08:19 -07:00
install-rpc.sh Lnd get info from frontend (#100) 2020-07-20 22:52:04 -07:00
LICENSE Update LICENSE (#71) 2020-07-15 16:00:13 -07:00
Makefile Add black to make codeformat in makefile (#85) 2020-07-18 19:40:28 -07:00
MANIFEST.in Use configurable engine for db (#251) 2020-08-19 23:14:45 -07:00
README.md Build python protos in setup (#254) 2020-08-20 04:41:35 -07:00
requirements-itest.txt Use pytest for itest (#161) 2020-07-28 19:49:44 -07:00
requirements.txt Use sqlalchemy for create tables (#249) 2020-08-18 23:18:48 -07:00
setup.cfg Rename squeaknode to squeakserver (#28) 2020-06-04 17:47:49 -07:00
setup.py Run codeformat with tox (#258) 2020-09-26 01:51:41 -07:00
tox.ini Run codeformat with tox (#258) 2020-09-26 01:51:41 -07:00
wait-for-it.sh Make docker compose run (#45) 2020-06-11 20:09:02 -07:00

squeakserver

Server for Squeak protocol

Test

Run unit tests:

$ make test

Run integration tests:

$ make itest

Run

Run with docker:

  • Edit docker/config.ini to use your external IP address for external_host
  • Start the squeak server:
    $ cd docker
    $ docker-compose up
    

Run without docker:

  • Create a config.ini file and fill in the relevant values:
    [squeaknode]
    network=testnet
    price=<YOUR_SELLING_PRICE_IN_SATOSHIS>
    max_squeaks_per_address_per_hour=<YOUR_RATE_LIMIT>
    
    [lnd]
    host=<YOUR_LND_HOST>
    external_host=<YOUR_LND_HOST>
    port=9735
    rpc_port=10009
    tls_cert_path=/root/.lnd/tls.cert
    macaroon_path=/root/.lnd/data/chain/bitcoin/testnet/admin.macaroon
    
    [bitcoin]
    rpc_host=btcd
    rpc_port=18334
    rpc_user=devuser
    rpc_pass=devpass
    
    [server]
    rpc_host=0.0.0.0
    rpc_port=8774
    
    [admin]
    rpc_host=0.0.0.0
    rpc_port=8994
    
  • Run the createdb.sql script on the postgres server to initialize the database.
  • Install the server requirements:
    $ pip3 install -r requirements.txt
    $ cp proto/* squeakserver/proto/
    $ python3 setup.py install
    
  • Start the squeak server:
    $ runsqueakserver --config config.ini run-server