Repository files navigation Steps to run the CRUST App
Fork the repository
Install go-ipfs from https://dist.ipfs.io/#go-ipfs
Extract the downloaded files and add the go-ipfs directory PATH to system environment varibles
Open a terminal window and execute
ipfs init
Open another terminal and execute the following to start the daemon server
ipfs daemon
Once the daemon server is up and running go to the local project directory and install the dependencies using the following code
npm i
Now run index.js
node index.js
Note: In case there's a dependency error regarding node-fetch package, ececute the following
npm i node-fetch@2
Go to localhost:3000 on a browser to view the build.
Upload a file by providing a file name and submit the form.
The submission will make a POST request to the IPFS server and return a cid on the screen.
Steps to setup the CRUST Wallet
Install the CRUST wallet extension from https://chrome.google.com/webstore/detail/crust-wallet/jccapkebeeiajkkdemacblkjhhhboiek?hl=en
Create an account as guided by the extension.
Save your seed in a text file.
Steps for storing a file on the CRUST network
Replace the fileCid variable in crust.js file with the cid generated through ipfs.
Also replace the seed value named as krp in crust.js file with your seed you saved during CRUST wallet installation.
Now run the file using
node crust.js
https://wiki.crust.network/docs/en/build101
https://www.youtube.com/watch?v=1Ud4HJNak4M&t=425s&ab_channel=zapppelphilippp
You can’t perform that action at this time.