wpuricz / ipfs-eos-demo

Demo saving text and images to ipfs and storing the hash on the EOS blockchain

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IPFS EOS Demo

This is a Vue.js example using IPFS to store images and text then storing the hash from IPFS as a string on the EOS blockchain.

This example shows:

  • Saving text to IPFS, then storing the hash returned by IPFS on the EOS blockchain
  • Saving an image to IPFS, then storing the hash returned by IPFS on the EOS blockchain
  • fetching the hash from the EOS blockchain, then querying IPFS for the image or text

IPFS Example

Config

Create a file called secrets.js and add it to the config directory. Paste this into the file and add your actual endpoint and keys for the app:

module.exports = {
    endpoint: "http://x.x.x.x:8888",
    keys: [
        'keygoeshere,
        'keygoeshere',
    ]
};

Start using:

npm run dev

About

Demo saving text and images to ipfs and storing the hash on the EOS blockchain


Languages

Language:JavaScript 57.6%Language:Vue 27.3%Language:C++ 10.7%Language:CSS 2.0%Language:HTML 1.7%Language:Shell 0.7%