Refer to this repository to apply for free crust storage specifically for developers and this hackathon. Github Repo
Video demo: link
- 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.
- 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.
- 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