Substrate microservice API providing REST endpoints for multi-signature trading, originally built for LocalCoinSwap
- Python 3.8.1 (preferred)
We suggest using pyenv to easily manage python versions. Some of the following commands use pyenv.
Use pyenv-installer for easy installation. Then add pyenv-virtualenv plugin to it.
Install and activate python 3.8.1 in the root directory
pyenv install 3.8.1pyenv virtualenv 3.8.1 substrateapipyenv local substrateapi
Install project requirements
pip install -r requirements.txt
Install precommit hook
pre-commit install
Create a file
local.envinservice/config/local.envfromexample-local.env
You're all set to hack!
Before making changes, let's ensure tests run successfully on local.
- Run all tests with coverage
coverage run -m pytest -v
- Show report in terminal
coverage report -m