- we created our own smartcontract using solidity and compiling it, deploying it and verifying it with hardhat.
- we created the react app
- we used Moralis to integrate the reactapp and smartcontract together to be able to vote and displaying informations.
Create .env file in ./smartcontract :
- API_KEY= # polygonscan.com API KEY
- POLYGON_MUMBAI=
- PRIVATE_KEY= # Wallet private key to deploy smart contract
Create .env file in root file :
- REACT_APP_APPID=
- REACT_APP_SERVERURL=
- REACT_APP_SMARTCONTRACT=
- Blog post : https://moralis.io/moralis-projects-build-your-first-dapp/
- Blog post tutorial : https://moralis.io/how-to-create-a-crypto-sentiment-dapp/
- My SmartContract : https://mumbai.polygonscan.com/address/0xC21a5620b3fA95433b63517d70214DCfC5246534#code
- Video tutorial : https://www.youtube.com/watch?v=MI_Se26Sfmo&ab_channel=MoralisWeb3
- Polygon Faucet: https://mumbaifaucet.com/