Refer to https://github.com/Mr-Perfection/MyDockerDevEnvironmentSetup
pre: cd into /backend
- start local testnet ---> pnpm run testnet
- Compile contracts ---> pnpm run build
- Test contracts --> pnpm run test
- Deploy contracts --> pnpm run deploy
pre: cd into /frontend
- Install dependencies ---> pnpm install
- start frontend ---> pnpm run dev
- build --> pnpm run build
I have not resolved the bug in getAllCandidates()
function call that it has the correct candidates.length
but the most recent candidate
is duplicated.
Pnpm (2x faster than npm) https://pnpm.io/installation
speed up npm install in dev container https://www.youtube.com/watch?v=iDdJWIPRUx4
Tutorial https://dev.to/xamhans/how-to-create-a-dapp-with-react-solidity-on-ethereum-blockchain-1gg0
Here are some ready to use IPFS services 📡, that you can easily use for your next project 🚀
🔗 https://pinata.cloud
🔗 https://nft.storage
🔗 https://docs.moralis.io/moralis-dapp/files/ipfs
🔗 https://infura.io/product/ipfs