1.3 KiB
1.3 KiB
Prerequisites
- Node and Yarn - Acquired using Node Version Manager (https://github.com/nvm-sh/nvm)
Quick Install for Prerequisites
- Install Node Version Manager
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.4/install.sh | bash
- Install the latest version of NodeJS
nvm install node # "node" is an alias for the latest version
- Install the latest version of NPM for Node
nvm install-latest-npm # get the latest supported npm version on the current node version
- Install Yarn
npm install --global yarn
Installation:
- Running with yarn
yarn --ignore-engines && yarn serve
- Building for web servers, like nginx, apache
yarn --ignore-engines && yarn build
cp -r ./dist/* <ROOT_OF_WEB_SERVER>
- Running with docker
./docker.sh
docker run -d -p 8088:80 ping.pub/dashboard
Enable RPC for Ping.pub (do this on the config for your chain)
- add proxy server and enable CORS. NOTE: You must enable https as well.
server {
server_name btc.rpc.orai.io;
listen 80;
location / {
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Max-Age 3600;
add_header Access-Control-Expose-Headers Content-Length;
proxy_pass http://<HOST>:26657;
}
}
- config your blockchain in ./src/chains