lnbits-legend/docs/devs/development.md
jackstar12 772ae2a1ab
support uvicorn reload functionality (#1841)
* support uvicorn reload functionality
see:
8239373ec6/uvicorn/main.py (L580-L582)
* add docs for --reload

---------

Co-authored-by: dni  <office@dnilabs.com>
2023-08-03 09:53:36 +02:00

808 B

layout title nav_order has_children
default For developers 4 true

For developers

Thanks for contributing :)

Run

This starts the lnbits uvicorn server

poetry run lnbits

This starts the lnbits uvicorn with hot reloading.

make dev
# or
poetry run lnbits --reload

Precommit hooks

This ensures that all commits adhere to the formatting and linting rules.

make install-pre-commit-hook

Tests

This project has unit tests that help prevent regressions. Before you can run the tests, you must install a few dependencies:

poetry install
npm i

Then to run the tests:

make test

Run formatting:

make format

Run mypy checks:

poetry run mypy

Run everything:

make all