-
Clone the repository
git clone https://github.com/gayashan4lk/blockchain-supplychain-dapp.git
-
Check version and install dependancies
npx truffle version
-
You will be prompted
Ok to proceed? (y)
. Typey
and pressEnter
. -
Compile smart contracts
npx truffle compile
-
Run tests.
- First run Ganache.
npx truffle test .\test\supply_chain.js
- You could see new blocks are creating in Ganache.
test