Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

RevDefine/revdefine

Repository files navigation

Rev Define (revdefine)

RChain BlockExplorer

This is just a front-end project which only display the data in the RChain. There are no mock data to demonstrate. If you really want to run the explorer with real data, you have to start the custom RNode and connect to it.

The custom RNode is not an official RNode version developed by the whole core team!!!!Bugs and problems are expected.

Prerequirements

You need to install the software below to compile.

  1. docker

Build in docker

Because a lot of the js libraries are out of dated in revdefine, in order to compile it well for everyone, here presents a docker way to make sure compile would work for different nodejs environments.

$ docker run --rm -it --entrypoint /bin/bash -v $(pwd):/revdefine ubuntu:18.04
dockerBash $ cd /revdefine
dockerBash $ bash docker-build.sh

After the command above , you would find the static files in dist.

Start the app in development mode (hot-code reloading, error reporting, etc.)

$ quasar dev

Then you can browse the page by http://localhost:8080

Build the app for production

quasar build

The generated static files would locate in dist.

config RNode server

The default host which the explorer is trying to connect is localhost.

You can edit the hosts by editting productionHost.ts

Currently revdefine.io is supporting the data providing.You can also use revdefine api.

export const productionHost = 'https://revdefine.io'
export const productionRNodePort = 40406