# chain4all-service
## How to run:
1. You need Node installed on your system
2. Run `npm install`
3. Run `npm run dev`
4. Enjoy!
## Configuration:
You can configure chain4all-service using following enviromental variables:
`CHAIN4ALL_SERVICE_PORT` - port which should this service use (default: 3000)
`IROHA_API_HOST` - host address of [iroha-rest-api](https://git.lesprojekt.cz/kunickyd/iroha-rest-api) (default: http://localhost)
`IROHA_API_PORT` - port of [iroha-rest-api](https://git.lesprojekt.cz/kunickyd/iroha-rest-api) (default: 5000)
`IROHA_DOMAIN` - name of Iroha domain, see [this](https://iroha.readthedocs.io/en/main/concepts_architecture/glossary.html?highlight=domain#domain) (default: test)
`IROHA_ASSET` - name of asset which should be used for future transactions (default: coin)
`DATA_OWNER` - name of Iroha user which should recieve payments (default: admin)
`PRICE_MODIFIER` - price of one area unit (default: 0.5)