This commit is contained in:
callebtc
2022-09-11 16:50:09 +03:00
parent 05cee3dd2a
commit fbf8c6eeb7
3 changed files with 26 additions and 3 deletions

View File

@@ -1 +1,24 @@
# 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
```

2
cashu
View File

@@ -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.")

View File

@@ -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():