No description
Find a file
2020-07-21 14:57:14 -07:00
docker Remove buy template link in frontend (#102) 2020-07-21 02:11:13 -07:00
frontend Create squeak address page and go to it from table (#107) 2020-07-21 14:57:14 -07:00
itests Add get signing profiles rpc (#103) 2020-07-21 04:23:52 -07:00
proto Add get signing profiles rpc (#103) 2020-07-21 04:23:52 -07:00
squeakserver Add get signing profiles rpc (#103) 2020-07-21 04:23:52 -07:00
tests Add black to make codeformat in makefile (#85) 2020-07-18 19:40:28 -07:00
.gitignore Update makefile. 2020-02-22 19:59:29 -08:00
createdb.sql Use btcd btcctl test containers (#63) 2020-07-02 22:45:12 -07:00
init.sql Use lowercase and underscores in sql tables column names (#90) 2020-07-19 01:50:48 -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 Optimize dockerfiles and update get wallet balance rpd method (#101) 2020-07-21 01:35:04 -07:00
README.md Update readme (#61) 2020-07-02 21:18:10 -07:00
requirements-itest.txt Update squeaklib to 0.3.3 2020-07-05 18:21:08 -07:00
requirements.txt Add btcd credentials to sqkserver config (#81) 2020-07-18 17:19:43 -07:00
setup.cfg Rename squeaknode to squeakserver (#28) 2020-06-04 17:47:49 -07:00
setup.py Format imports with isort in makefile (#84) 2020-07-18 19:25:31 -07:00
tox.ini Add black to make codeformat in makefile (#85) 2020-07-18 19:40:28 -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:
    [DEFAULT]
    network=testnet
    
    [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
    
    [server]
    rpc_host=0.0.0.0
    rpc_port=8774
    price=<YOUR_SELLING_PRICE_IN_SATOSHIS>
    
    [postgresql]
    host=<YOUR_POSTGRES_HOST>
    database=squeakserver
    user=postgres
    password=postgres
    
  • Run the createdb.sql script on the postgres server to initialize the database.
  • Install the server requirements:
    $ pip3 install -r requirements.txt
    $ install-rpc.sh
    $ python3 setup.py install
    
  • Start the squeak server:
    $ runsqueakserver --config config.ini run-server