Skip to content

Mr-Perfection/image-voting-app-using-solidity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

How to start

Setup (for Docker dev environment)

Refer to https://github.com/Mr-Perfection/MyDockerDevEnvironmentSetup

Backend

pre: cd into /backend

  1. start local testnet ---> pnpm run testnet
  2. Compile contracts ---> pnpm run build
  3. Test contracts --> pnpm run test
  4. Deploy contracts --> pnpm run deploy

Frontend

pre: cd into /frontend

  1. Install dependencies ---> pnpm install
  2. start frontend ---> pnpm run dev
  3. build --> pnpm run build

Bugs 🐛🐛

I have not resolved the bug in getAllCandidates() function call that it has the correct candidates.length but the most recent candidate is duplicated. Screenshot 2022-12-14 at 2 38 51 PM

References

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

Etc

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published