Prototype to store files on IPFS and Ethereum Blockchain.
- IPFS
- Truffle
- Ganache
- Web3.js
- NodeJs
- Chrome with CORS extension
-
Install IPFS
-
Start IPFS daemon.
ipfs daemon
-
Configure config.js variables in Services/config.js.
Add Ganache mnemonic to CONFIG.wallet_passphrase. -
Deploy Smart Contracts using Truffle and Ganache.
Configure config.js variables in Services/config.js.cd SecureFileSharing.
truffle compile -all.
truffle migrate -reset. -
Use the contract address generated after deployment in config.js, CONFIG.hs_contract_address variable.
-
Start the webapp.
npm install.
npm start. -
Start the React App.
cd app.
npm install.
npm start. -
Enable CORS from the Chrome Extension
Note: The implementation stores the addresses of the authorized accounts in smart contract as per the current Ganache accounts. So, the values would need to be updated as per the blockchain on which the application runs.
Screenshots




