Code Monkey home page Code Monkey logo

crustapp's Introduction

Refer to this repository to apply for free crust storage specifically for developers and this hackathon. Github Repo

Video demo: link

Steps to run the CRUST App

  1. Fork the repository
  2. Install go-ipfs from https://dist.ipfs.io/#go-ipfs
  3. Extract the downloaded files and add the go-ipfs directory PATH to system environment varibles
  4. Open a terminal window and execute
    ipfs init
  5. Open another terminal and execute the following to start the daemon server
    ipfs daemon
  6. Once the daemon server is up and running go to the local project directory and install the dependencies using the following code
    npm i
  7. 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
  8. Go to localhost:3000 on a browser to view the build.
  9. Upload a file by providing a file name and submit the form.
  10. The submission will make a POST request to the IPFS server and return a cid on the screen.

Steps to setup the CRUST Wallet

  1. Install the CRUST wallet extension from https://chrome.google.com/webstore/detail/crust-wallet/jccapkebeeiajkkdemacblkjhhhboiek?hl=en
  2. Create an account as guided by the extension.
  3. Save your seed in a text file.

Steps for storing a file on the CRUST network

  1. Replace the fileCid variable in crust.js file with the cid generated through ipfs.
  2. Also replace the seed value named as krp in crust.js file with your seed you saved during CRUST wallet installation.
  3. Now run the file using
    node crust.js

Notion Link for reference

Link

Resources

  1. https://wiki.crust.network/docs/en/build101
  2. https://www.youtube.com/watch?v=1Ud4HJNak4M&t=425s&ab_channel=zapppelphilippp

crustapp's People

Contributors

amc-hawk avatar hasnain40247 avatar amanv2k avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.