Go to file
Peng Zhong db78f2fce5 shuffle validators 2018-07-19 22:59:43 +08:00
public update public folder 2018-06-13 20:46:17 +08:00
src shuffle validators 2018-07-19 22:59:43 +08:00
.gitignore Update vue to v2.5.16 2018-06-11 17:47:06 +08:00
Dockerfile add Dockerfile and index 2018-06-11 18:09:23 +08:00
README.md update readme 2018-06-28 02:02:23 +08:00
babel.config.js Update vue to v2.5.16 2018-06-11 17:47:06 +08:00
index.html Merge branch 'master' into bianjie/cosmos-explorer 2018-06-11 16:03:14 +02:00
package.json offline msg 2018-07-13 18:01:24 +08:00
vue.config.js Update vue to v2.5.16 2018-06-11 17:47:06 +08:00
yarn.lock offline msg 2018-07-13 18:01:24 +08:00

README.md

Cosmos Explorer

Graphical interface to explore validators, fullnodes, and blocks for Cosmos Hub testnets.

Backend Requirement

The Explorer is stateless and relies on a high-throughput Cosmos full node to connect to. The Explorer requires both the Tendermint RPC and the Cosmos LCD REST endpoints to be available publicly through TLS-secured subdomains. The convention is https://rpc.fullnode.com and https://lcd.fullnode.com.

To change the backend, edit the file ./src/store/modules/blockchain.js. On the lines 5 and 6, change the technofractal.com part of the URL to your full node's domain name.

rpc: "https://rpc.technofractal.com",
lcd: "https://lcd.technofractal.com",

And change the line 27 too:

const client = RpcClient("wss://rpc.technofractal.com:443")

WARNING: Every user that visits the Explorer opens two websockets to the default full node. The user will continue to spam your full node with AJAX requests until they close the page. We need a better backend solution for the Explorer! Please help if you can.

Build

# install dependencies
yarn

# serve with hot reload at localhost:8080
yarn serve

Deploy

# build for production with minification
yarn build

# then serve the `./dist` folder with the web server of your choice