mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-23 11:44:19 +01:00
readme
This commit is contained in:
23
README.md
23
README.md
@@ -1 +1,24 @@
|
|||||||
# cashu
|
# 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
2
cashu
@@ -23,7 +23,7 @@ def coro(f):
|
|||||||
|
|
||||||
|
|
||||||
@click.command("mint")
|
@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("--wallet", default="wallet", help="Mint tokens.")
|
||||||
@click.option("--mint", default=0, help="Mint tokens.")
|
@click.option("--mint", default=0, help="Mint tokens.")
|
||||||
@click.option("--send", default=0, help="Send tokens.")
|
@click.option("--send", default=0, help="Send tokens.")
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ from wallet.wallet import Wallet as Wallet2
|
|||||||
from wallet.migrations import m001_initial
|
from wallet.migrations import m001_initial
|
||||||
|
|
||||||
|
|
||||||
SERVER_ENDPOINT = "http://localhost:5000"
|
SERVER_ENDPOINT = "http://localhost:3338"
|
||||||
|
|
||||||
|
|
||||||
async def run_test():
|
async def run_test():
|
||||||
|
|||||||
Reference in New Issue
Block a user