“IPFS and the Blockchain are a perfect match! You can address large amounts of data with IPFS, and place the immutable, permanent IPFS links into a blockchain transaction. This timestamps and secures your content, without having to put the data on the chain itself.”
A simple DApp to upload a document to IPFS and then store the IPFS hash on the Ethereum blockchain. Once the IPFS hash number is sent to the Ethereum blockchain, the user will receive a transaction hash. We will use Create-React-App framework to make a front-end. This Dapp works with any user that has MetaMask installed in their browser.
Pre-Requisites React Ganache MetaMask Truffle
-
Fork this repository.
-
Clone the repository
git clone https://github.com/sagar-barapatre/Decentralized-Storage-IPFS.git
-
Open the folder in which you cloned the repository.
-
Open Ganache to run your local blockchain.
-
Run this command to build your smart contracts.
truffle init
truffle compile
truffle migrate
-
Run on your local host and connect your wallet with metamask to perfrom the transactions.
-
To start your application run the following command in your terminal.
npm start