This is a dApp created by drizzle box. It mainly contains two parts: Truffle project and React project.
- Ganache UI
- Truffle
- Node.js
npm install --save @openzeppelin/contracts
truffle compile
It should compile all the smart contract.
Use
sudo truffle compileto download and update the solc version.
Open ganache UI, config the RPC SERVER:HTTP://127.0.0.1:8545 and add our project by selecting the truffle-config.js, then click Restart.
Next step run the following command:
sudo truffle migrate --network develop
By running this, the smart contracts in this project were deployed to the blockchain.
We can check what was happened to our blockchain in ganache UI.
At /drizzle-test/app directory run:
NOTE: This step always forgot! Don't waste your time
npm install
npm run start
HOST=0.0.0.0 npm run startcan let other people access your app from their computers.
Now we can enjoy interacting with our blockchain and smart contract using front-end webpage.
