Step-1- Clone the app into your local system
git clone https://github.com/ayush18023/SPIT_Ideal_bits.git
Step-2 - Run npm install command for installing all the dependencies
npm i
Step-3 - Compile the OurTube.sol contract
npx hardhat compile
After this an artifact file will be made inside the src folder which contains the JSON file with the ABI code inside it.
Step-4 - Now initiate a local blockchain network
npx hardhat node
Step-5 - Deploy the contract to the blockchain
npx hardhat run scripts/deploy.js --network localhost
here the output will be
Hashes deployed to: (hexadecimal address)
Copy that address and paste it into the hashesAddress global variable in the IPFS.js and Search.js files under 'Components' folder under 'src'
Step-6 - Start the frontend of the application on the browser
npm start
Step-7 - Install Metamask Extension onto the browser and login or create an account. Enable show local/test networks in the metamask settings. Switch to localhost:8545 Click on import an account on metamask then copy the private key of one of the accounts shown during step-3 and paste it to import that account onto your metamask
NOW, Click on Upload movie and Upload file(s) then click the 'Submit' button, this will ask for a payment through metamask, confirm the payment and then the file's hash will be stored on the blockchain.
You can Search for files by clicking the Search button and entering the file name with the file extension For eg: 'ABC.pdf'
After entering the file name then click on Search after that your file will be visible click on it then your file will be downloaded.
- We're are open to enhancements & bug-fixes.
- Feel free to add issues and submit patches.
- Ayush Deshmukh - Ayush Deshmukh
- Yash Shah - Yash Shah
- Rishabh Jain -Rishabh Jain
- Anish Jaiswal -Anish Jaiswal