Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 866 Bytes

README.md

File metadata and controls

28 lines (24 loc) · 866 Bytes

The fhirprovenance project uses Ethereum's blockchain to store cryptographic hashes of FHIR resources so future resesource readers can verify that the data within the resource has not been tampered with.

Development

Start Truffle

npm install
npm install -g truffle
npm install -g ethereumjs-testrpc
./startup.sh
# leave this running in one terminal

Start the server

In different terminal window, compile truffle and start the server

truffle compile --network development
npm start

restart after changes

rm ./build/contracts/* && truffle compile -e development --network development && truffle migrate reset --network development --compile-all && npm start

Production

rm ./build/contracts/* && truffle compile -e production --network production && truffle migrate reset --network production --compile-all && npm start