ethPhoto:照片共享DAPP

  • z7_131253
    了解作者
  • 1.5MB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-03 02:25
    上传日期
EthPhoto EthPhoto是一个基于以太坊的照片共享DAPP ! 安装 该DAPP可在任何支持NodeJS的操作系统上使用。 安装说明是针对基于Debain的系统编写的。 在继续之前,请确保已安装git 。 首先,将文件夹photoDapp复制到您的系统并cd到其中。 使用以下脚本安装nvm并获取最新版本的Node (> = 6.9.0)和npm (> = 4.2.0)。 bash install_nvm.sh 现在安装testrpc以模拟以太坊网络(testnet)。 npm install -g ethereumjs-testrpc 现在,使用以下脚本在Dapp网络上安装ipfs以进行文件共享。 bash install_ipfs.sh 将所有必需的节点程序包安装在文件夹photoDapp中。 npm install 运行软件 要模拟所需的测试网,请启动一个包含10个客户端的testrpc ,并在终端上设置高气体限制。 testrpc -l 20000000000000000000000000 在另一个终端中,初始化IPFS并启动IPFS守护程序。 ipf
ethPhoto-master.zip
  • ethPhoto-master
  • .gitignore
    35B
  • templates
  • done.html
    875B
  • change_username.html
    3.9KB
  • view_image.html
    3.8KB
  • home.html
    10.7KB
  • package.json
    498B
  • README.pdf
    62.7KB
  • pictures
  • marker.png
    191.1KB
  • home.png
    191.2KB
  • thumb.png
    255.9KB
  • image.png
    786.5KB
  • contract
  • EthImage.sol
    2KB
  • address
    42B
  • README.md
    2.1KB
  • install_ipfs.sh
    358B
  • create_contract.js
    805B
  • files
  • data.js
    334B
  • node_two.js
    8.4KB
  • install_nvm.sh
    196B
  • node_one.js
    8.2KB
内容介绍
## EthPhoto EthPhoto is an Ethereum based photo sharing *DAPP*! ## Installation This DAPP will work on any OS that supports **NodeJS**. The installation instructions are written for Debain based systems. Ensure **git** is installed before proceeding. * First, copy the folder **photoDapp** to your system and cd into it. * Install **nvm** and get latest version of **Node** (>=6.9.0) and **npm** (>=4.2.0), using the following script. ``` bash install_nvm.sh ``` * Now install testrpc to simulate an **Ethereum** network (testnet). ``` npm install -g ethereumjs-testrpc ``` * Now install **ipfs** for file-sharing on the Dapp network, using the following script. ``` bash install_ipfs.sh ``` * Install all necessary **node** packages in the folder **photoDapp**. ``` npm install ``` ## Running the software * To simulate the required testnet, start a **testrpc** of 10 clients and a high gas limit on a terminal. ``` testrpc -l 20000000000000000000000000 ``` * In another terminal, initialize **IPFS** and start the **IPFS** daemon. ``` ipfs init ipfs daemon ``` * Now compile and deploy our Solidity contract on Ethereum testnet. ``` node create_contract.js ``` * Now start two nodes that connects to **Ethereum** testnet. ``` node node_one.js node node_two.js ``` * Access the network at **localhost:3050** and **localhost:3051** as two nodes in your browser. ## Note for users behind a proxy If you are installing the software behind a proxy network, ensure that you configure **git** and **npm** to work with proxy. ``` git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080 git config --global https.proxy http://proxyuser:proxypwd@proxy.server.com:8080 ``` Also, configure **npm** after it's installation, if you are behind a proxy server. ``` npm config set proxy http://proxy.company.com:8080 npm config set https-proxy http://proxy.company.com:8080 ``` #### IPFS and Proxy Due to port filtering, IPFS cannot function behind a proxy server. So, while running IPFS daemon and during further usage of the software, you'll have to use connect to a network that's not behind a proxy.
评论
    相关推荐