- Created a Dropbox clone full stack decentralized application where users can store their files in the blockchain using IPFS (Inter Planetary File System).
- Deployed the smart contract on Ganache and also on Rinkeby test network.
- Truffle box for Local DAPP Developemnt: https://github.com/truffle-box/react-box
- Metamask for Deploying it in Test networks: https://metamask.io/
- Ganache by Truffle for Local blockchain testing: https://www.trufflesuite.com/ganache
- npm install -g truffle ---> Truffle intsallation
- truffle unbox react ---> Unbox the React box
- Connect ganache to the Metamask using Custom RPC option in Metamask and import the accounts from Ganache
- Make Sure that Ganache is running Locally (We can start Ganache either with GUI or by using the Ganache-CLI("ganache-cli --port 7545 --chainId 5777")
- Run the React Application using "npm run start", this will start our React application in localhost:3000
- We will be provided with an option to chose the file and enter description for the file. After selecting the file, We will click on upload.
- If the transaction goes through, File will be uploaded to IPFS and file hash will be stored on blockchain
- We can view the uploaded files by clicking on file hash (Which acts as an address to the file in IPFS)
- We can either use Ganache or any Test network to deploy the application on blockchain. We use Infura to deploy the app on test networks.