From fbf8c6eeb7a4c4fbc5b1f6dea61f417821370c61 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Sun, 11 Sep 2022 16:50:09 +0300 Subject: [PATCH] readme --- README.md | 25 ++++++++++++++++++++++++- cashu | 2 +- test_wallet.py | 2 +- 3 files changed, 26 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 47c77b0..a9ffe0f 100644 --- a/README.md +++ b/README.md @@ -1 +1,24 @@ -# cashu \ No newline at end of file +# cashu + +## Install + +```bash +sudo apt install pkg-config libffi-dev libpq-dev +# on mac: brew install postgres +curl https://pyenv.run | bash +pyenv install 3.9.13 +cd cashu +mkdir data/wallet data/mint +poetry install +``` + +## Run mint +```bash +cd mint/ +poetry run flask run --host 0.0.0.0 --port 3338 +``` +## Run wallet + +```bash +poetry run ./cashu --wallet=wallet --mint=420 +``` \ No newline at end of file diff --git a/cashu b/cashu index e1963fb..f22ebb8 100755 --- a/cashu +++ b/cashu @@ -23,7 +23,7 @@ def coro(f): @click.command("mint") -@click.option("--host", default="http://localhost:5000", help="Mint tokens.") +@click.option("--host", default="http://localhost:3338", help="Mint tokens.") @click.option("--wallet", default="wallet", help="Mint tokens.") @click.option("--mint", default=0, help="Mint tokens.") @click.option("--send", default=0, help="Send tokens.") diff --git a/test_wallet.py b/test_wallet.py index 9c1e82e..eb3ed27 100644 --- a/test_wallet.py +++ b/test_wallet.py @@ -6,7 +6,7 @@ from wallet.wallet import Wallet as Wallet2 from wallet.migrations import m001_initial -SERVER_ENDPOINT = "http://localhost:5000" +SERVER_ENDPOINT = "http://localhost:3338" async def run_test():