Skip to content

Demo of the DApp

Ozlu edited this page May 30, 2021 · 6 revisions

STEP BY STEP

1.) Deploy our smart contract to the Ethereum blockchain.

truffle migrate --reset

2.) Deploy and run the front-end application.

npm start run

3.) Copy the private key of the second account (first account is deploy-er of the DApp, second account is the user of the DApp).

4.) Import the account on MetaMask.

5.) Stake Dai token (Give the amount, enter "STAKING!" button and then refresh the page).

6.) Execute the "issue-tokens.js" script to issue tokens and then refresh the page.

7.) Click "un-stake" button to get your Dai token back.

Clone this wiki locally