Skip to content

pandoraboxchain/pyrrha-webclient

Repository files navigation

Codacy Badge Build Status

Pandora Pyrrha Webclient

Web application for working with kernels and datasets

Initial setup/update

npm i
git submodule update --recursive --remote

MetaMask (https://metamask.io/) browser extension is required:

  • Install extension
  • Connect to apropriate netowork where Pandora contracts are deployed (rinkeby, currently)
  • Create a wallet
  • Get some ETH to your account via Rinkeby faucet (https://faucet.rinkeby.io/)

Start

npm start

Local configuration (for development)

All kinds of development configurations are located in the file ./src/config/index.js
To enable one of the hosts from config you can use environment variable USE_HOST. This way you can start your local development app instance with, for example:

USE_HOST=rinkeby npm start

Docker

Server's port and other configurations can be changed in the file ./docker-compose.yml
Default build arguments:

args:
    - REACT_APP_WEB3_PROTOCOL=http
    - REACT_APP_WEB3_PORT=8545
    - REACT_APP_WEB3_HOSTNAME=dockstation.pandora.network
    - REACT_APP_PAN_ADDRESS=0x58e66b79928cfb362b53c185a6a1fded882bb07d
    - REACT_APP_MARKET_ADDRESS=0x6142029abb21ef2e0bffde8d43f15c64f3750fe6
    - REACT_APP_IPFS_PROTOCOL=http
    - REACT_APP_IPFS_HOST=ipfs.pandora.network
    - REACT_APP_IPFS_PORT=5001
    - REACT_APP_WEB3_RECONNECT_TIMEOUT=5000
ports:
    - "8080:8080"

Build container:

npm run build:docker

Start container in daemon mode:

npm run start:docker

Stop the container:

npm run stop:docker

By default, Pandora Webclient will be available on port 8080
Server's logs are placed in folder ./.logs

Known issue