The Foundation of a Decentralized Web
To run tests you need to install the following software:
To run test open the terminal and run the following commands:
$ cd smart-contract
$ truffle migrate
$ truffle test ./test/MainFlow.js
$ truffle test ./test/RefundFlow.js
$ truffle test ./test/RefundFlow.jsNOTE: All tests must be run separately as specified
To deploy smart contracts to live network do the following steps:
- Go to the smart contract folder and run truffle console:
$ cd smart-contract
$ truffle console- Inside truffle console invoke "migrate" command to deploy contracts:
truffle> migrate