yarn # or yarn install
yarn compile
yarn dev
yarn compile
compiles the smart contract and yields an json version ready to use withweb3
inethereum/build
In order to use the application, you must deploy the contract in your favourite ethereum network and you have to have an account in that to be able to make a deployment (that is trivial using truffle with ganache).
Once deployed, the deploying account will have 'Owner' role, and you will be able to add more accounts and play around with the application and the contract.
The contract class diagram is as follows. You can check the implemented roles (which are Owner, Admin, Doctor and Patient sorted by granted privileges).