This is an Ethereum-based DApp using IPFS. With this application users are able to sell and buy files (can be data files) using "ether". The file is stored on the InterPlanetary File Server (IPFS), a decentralized cloud storage platform. The file that is stored on the server is encrypted. Access control has also been added for the files such that once a file is bought it can be accessed again in the future without buying it again. This application also requires the user to use the extenstion Metamask; one can download this extension at that the following site: https://metamask.io/
Youtube: https://youtu.be/SnVOjttbFm4
- Download and install Ganache and metamask extension in suitable browser (chrome/firefox)
Ganche: https://www.trufflesuite.com/ganache
Netmask: https://metamask.io/
-
Run Ganache Ganche: https://www.trufflesuite.com/ganache
-
Import ganache accounts to metamask using the private key
There is a key symbol beside each account, click one of the account address and copy the private key. Now open MetaMask settings and click the option of import accounts. Inside the “Private Key” field, just paste the copied key information.
- Change metamask network to localhost 7545
Click top right icon -> settings -> networks -> local host 8545 -> change name and port to 7545 -> save
See similar details at https://www.linkedin.com/pulse/using-ganache-ethereum-emulator-metamask-farhan-khan/
-
Download the repository using git clone
-
Install necessary dependencies using npm
cd plata
npm install
npm install -g truffle
- Compile and then deploy contract to ganache network using below command
truffle compile
truffle migrate
- Run website on local machine
npm run dev
- The website is now hosted at
localhost:3000/
- Run
node server
- Refer to video on how it works after it is hosted on localhost