• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

FriendlyUser/file-track-Dapp: Upload and track IPFS files securely on the Ethere ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

FriendlyUser/file-track-Dapp

开源软件地址:

https://github.com/FriendlyUser/file-track-Dapp

开源编程语言:

JavaScript 91.0%

开源软件介绍:

Build Status JavaScript Style Guide Coverage Status GitHub license DOI Etherscan

File-track Dapp

Simple Dapp that can track files uploaded to IPFS.

Docs at https://FriendlyUser.github.io/file-track-Dapp App at http://IPFSDapp.surge.sh

Screenshot Built using standard truffle and solidity. Dapp Architecture

Upload and track IPFS files securely on the Ethereum Network, supports UPORT

Dapp Structure

Images are converted from pdf to png using imagemagick

convert -density 400 -resize 50% ipfs-dapp.pdf ipfs-dapp.png

Uses the css framework bulma and font-awesome for icons.

Filename IPFS Hash url
ENGR001 Report QmSE4qrynVfCU1Vevhvaeav6RWtN5vFKSn3KaC3GuSKPvq ENGR001
ENGR002 Report QmezncgKe3NEMyN9mmitT3BLwLE3adCNyNDUSJssgCqGXb ENGR002
ENGR003 Report QmZb7crH2YYqwvq5d2pCjZxAovzqXkhWwnEE993UM4jikk ENGR003
ENGR446 Report QmeQegoUZ3YMNpgUvinU424FtrMUYNNHgQafmaThrzG9nZ ENGR446

TodoList

  • Truffle Test
  • User Registry Contract
  • Basic Front End
  • Design Auth Contract
  • Add front-end for authentication
  • Add component for viewing files for self, use bulma table.
  • Boilerplate for Front-end testing
  • Add component for viewing files for other users
  • Deploy Contracts to main net and then upload a few files.
  • Load different colours based on network
  • Improve Form Validation and UI
  • Try to add drizzle-front-end testing for components, this ought to be fun, maybe write an medium article about this.
  • Add Contact Us Page, FAQ Page, etc ...
  • Polish app, adding loading icons or render bulma icons, or font-awesome loading icons, add Contact Page.

Prereqs

  1. node / npm and/or yarn
  2. Ethereum Browser (metamask or coinbase wallet)
  3. Static hosting (github pages and/or surge)
  4. truffle, ganache-cli

Installation

  1. Install Truffle and Ganache CLI globally. If you prefer, the graphical version of Ganache works as well!

    npm install -g truffle
    npm install -g ganache-cli
  2. Download the box. This also takes care of installing the necessary dependencies.

    truffle unbox drizzle
  3. Run the development blockchain, we recommend passing in a blocktime. Otherwise, its difficult to track things like loading indicators because Ganache will mine instantly.

    // 3 second blocktime.
    ganache-cli -b 3
  4. Compile and migrate the smart contracts. Note inside the development console we don't preface commands with truffle.

    compile
    migrate
  5. Run the webpack server for front-end hot reloading (outside the development console). Smart contract changes must be manually recompiled and migrated.

    // Serves the front-end on http://localhost:3000
    npm run start
  6. Truffle can run tests written in Solidity or JavaScript against your smart contracts. Note the command varies slightly if you're in or outside of the development console.

    // If inside the development console.
    test
    
    // If outside the development console..
    truffle test
  7. Jest is included for testing React components. Compile your contracts before running Jest, or you may receive some file not found errors.

    // Run Jest outside of the development console for front-end component tests.
    npm run test
  8. To build the application for production, use the build command. A production build will be in the build_webpack folder.

    npm run build

Other doxity options

  "interaction": {
    "network": "2",
    "providerUrl": "https://morden.infura.io/sign_up_to_get_a_hash"
  },
  // option to whitelist various data
  "whitelist": {
    // the keyname `all` will be used for whitelist defaults
    "all": {
      "abi": true,
      "methods": true,
      "bytecode": false, // bytecode is false or undefined, it won't be shown
      "source": false // source is false or undefined, won't be shown
    },
    "DigixMath": {
      "source": true // source code uniquely shown for this contract, bytecode still hidden
    }
  }

Example

References




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
cedriking/ipfsarweave发布时间:2022-06-22
下一篇:
bdjukic/react-ethereum-ipfs: This is a starter kit for a demo dApp using React, ...发布时间:2022-06-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap