Tradittional donations are base on money donation, in ethereum blockchain based Dapps based on ethers or other tokens. In this DApp a platform in developed to let you tokenize your physical assets and donate them to whom they may require them. It is based on two ideas of donation:
- Donation of assets from a donor to an individual.
- Fund and Asset raising from donors for projects which can be defined in this platform.
The smart contracts are build using truffle and tested locally using ganache-cli. The project is also deployed on rinkedby testnet. The front end is developed using React.js.
IPFS is also used to store image files related to donated assets.
it is assumed that you have nodejs and yarn installed. You also need to have metamask extension added to your chrome beowser.
The next steps will be:
- Clone project
- yarn in main directory will install all dependencies
yarn
- yarn start will run DApp http://localhost:3000/
yarn start
If you are going to redeploy the contracts to testtnet you can use:
truffle migrate --reset --network rinkeby
You need to install truffle and ganache and truffle hdwallet-provider to compile, migrate, and test smart contracts locally. In a command line window run: ganache-cli Move to another command line window. In AssetDonation sub-directory:
1. truffle compile
2. truffle migrate
3. truffle console
4. truffle test
- ERC721 from openzeppeline is used to control the ownership and safe transfer of assets
- IPFS used for saving image files and theIPFS hash of images saved on blockchain