Stat
Build from source
Install Prerequisites
You will need an up-to-date version of Go to build your project. Please follow installation instructions provided here.
Cloning
cd /srv
git clone https://github.com/bsn-si/IPEHR-gateway.git
Configuration
cd IPEHR-gateway
cp config-stat.json.example config-stat.json
In the configuration file, change the contract addresses to the actual ones, and also specify sync.startBlock - the initial number of the block from which the synchronizer will load data. If this is an initial installation, the DataStore smart contract deployment block number can be specified here.
Building
cd /srv/IPEHR-gateway/src
go build -o ../bin/ipehr-stat cmd/stat/main.go
Running
/srv/IPEHR-gateway/bin/ipehr-stat -config=/srv/IPEHR-stat/config-stat.json
Last updated