Awesome
🤝 JS Meets The Blockchain Demo
⚠️
ganache-cli
andtruffle
are set as dev deps, so no global installation is needed.
Install Contract Deps
$ npm i
Install Dapp Deps
cd dapp
npm i
Deploy Contracts in Local Network
npm run node
> this starts ganache-clinpm run deploy
> this runs truffle migrate
Test Contracts in Local Network
npm run node
> this starts ganache-clinpm run test
> thisruns truffle test
Run Demo DApp
- Open
./dapp/index
file. - Replace contract address with the new deployed contract address provided by
ganache-cli
- Replace private key account with one provided by
ganache-cli
npm run dapp
// runs code inside ./dapp directorio