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

hKedia/dShare: Secure File Sharing with time-stamping using IPFS, Ethereum and B ...

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

开源软件名称:

hKedia/dShare

开源软件地址:

https://github.com/hKedia/dShare

开源编程语言:

JavaScript 65.1%

开源软件介绍:

DOI

Local Setup

Downloading dependencies

  1. Clone the repo using git clone and cd into the folder
  2. Run npm install to download all the dependencies

Compiling the smart contract

  1. cd into the ethereum folder and run node compile.js

Above command will compile the contract using solc and outputs the json files under ethereum/build

Deploying the smart contract to Rinkeby

Before deploying the contract, you need to set the WALLET SEED and the RINKEBY network url inside the file ethereum/deploy.js

The WALLET SEED is the 12 word mnemonic phase for your wallet. The RINKEBY network url can be obtained by signing up at Infura.io

Once the values are set run node depoloy.js under ethereum folder.

When the contract is successfully deployed, above command console logs the contract address of the newly deployed contract.

Note this contract address as this needs to be set in the .env file

Process environment variables

Rename .env.default to .env and supply the necessary values

Ethereum Config
RINKEBY_URL=The rinkeby api url obtained from Infura.io
FACTORY_CONTRACT_ADDRESS=The address where the contract is deployed

Firebase Config
API_KEY=
AUTH_DOMAIN=
DATABASE_URL=
PROJECT_ID=
STORAGE_BUCKET=
MESSAGING_SENDER_ID=

OriginStamp Config
ORIGINSTAMP_API_KEY=Key for calling OriginStamp API. It can be obtained from OriginStamp.org

Running in dev mode

In the root directory run npm run dev to start the application in development mode

Running in production mode

In the root directory run npm run build to build the application

Once the build process is complete, run npm run start to start the application in production mode

Testing

For testing, mocha is used

In the root directory run npm run test to run all the tests




鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
ronsoros/ipfsircd发布时间:2022-06-23
下一篇:
tikyau/IPFS-Uploader-UI: A Web UI Uploader for IPFS发布时间:2022-06-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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