Skip to content

pandoraboxchain/pyrrha-boxproxy

Repository files navigation

Codacy Badge Codacy Badge Build Status

pyrrha-boxproxy

Server-side proxy for Pandora Pyrrha Boxchain explorer

Documentation

Initial setup

Requires node.js version 9 and up

npm i
git submodule update --init --recursive --remote

Configuration

Local configuration file is placed in folder ./config
Also, can be used following environment vars:

  • WEB3_PROTOCOL
  • WEB3_HOSTNAME
  • WEB3_PORT
  • PAN_ADDRESS
  • MARKET_ADDRESS

Using with Docker

Environment configuration is in the ./docker-compose.yml

Building:

npm run build:docker

Starting:

npm run start:docker

Stopping:

npm run stop:docker

Running tests

Tests and coverage results will be deployed to codacy and available on Codacy Dashboard

For testing without coverage report use:

npm test

For generating and updating a code coverage report use:

npm run test-with-coverage