REST API built on Iroha Hyperledger python library

Daniel Kunický 427a0e0a22 Update 'README.md' il y a 3 ans
.gitignore 28b4282587 ignore .env file il y a 3 ans
README.md 427a0e0a22 Update 'README.md' il y a 3 ans
app.py f8002df3e5 add error handling il y a 3 ans

README.md

iroha-rest-api

Dependencies:

flask
python-dotenv
iroha

How to run:

  1. You need Python and Flask installed on your system
  2. Export these enviromental variables:
    export FLASK_APP=$PWD/app.py
    export FLASK_ENV=development
  3. Run flask run command

Configuration:

You can configure iroha-rest-api using following enviromental variables:
IROHA_HOST_ADDR - address of Iroha ledger (default: 127.0.0.1)
IROHA_PORT - port of Iroha ledger (default: 50051)
ADMIN_ACCOUNT_ID - user and domain name of Iroha admin (default: admin@test)
ADMIN_PRIVATE_KEY - private key of Iroha admin (default: f101537e319568c765b2cc89698325604991dca57b9716b58016b253506cab70)