This project is a basic illustration of proof of existence on Ethereum Blockchain using Solidity smart contracts and IPFS. You can store any document on IPFS and the document's hash returned by IPFS is stored in blockchain. This system can be used for storing academic results, identity documents, participation certificates of events etc with the security of blockchain.
-
Clone the repository
git clone https://github.com/balajipachai/proof-of-existence.git
-
Run the development console.
ganache - cli
-
Compile and migrate the smart contracts.
npm run compile npm run migrate
-
Run the React app. Smart contract changes must be manually recompiled and migrated.
npm run start
-
Truffle can run tests written in Solidity or JavaScript against your smart contracts. Note the command varies slightly if you're in or outside of the development console.
npm run test:contracts
-
Jest is included for testing React components. Compile your contracts before running Jest, or you may receive some file not found errors.
npm run test
-
To build the application for production, use the build script. A production build will be in the
app/build
folder.npm run build
This repo is created by referring https://github.com/truffle-box/drizzle-box