Skip to content

spectre-project/spectre-explorer

Repository files navigation

Spectre Explorer

This is a fork of Kaspa explorer used for the Spectre network project https://explorer.spectre-network.org written in JS with React.JS library.

This project was bootstrapped with Create React App.

Deployment

For deploying the block explorer make sure that nodejs build environment is set up by running npm --version. The build requires to configure the following mandatory environment variables:

  • REACT_APP_API_ADDRESS which is the public address of the REST API endpoint.
  • REACT_APP_KGI_ADDRESS which is the public address of the graph inspector to inspect a specific block.

The API endpoint and Graph Inspector must operate on a web server secured with SSL.

Optionally you can specify the explorer version to show in the footer:

  • REACT_APP_VERCEL_GIT_COMMIT_SHA which is the version of the running explorer instance (default: xxxxxx).

Build the block explorer:

git clone https://github.com/spectre-project/spectre-explorer
cd spectre-explorer
export REACT_APP_VERCEL_GIT_COMMIT_SHA="$(git log -1 --date=short --format="%h" | tr -d '-')"
export REACT_APP_API_ADDRESS=api.spectre-network.com
export REACT_APP_KGI_ADDRESS=kgi.spectre-network.com
npm install

Start the block explorer:

node server.js

Releases

No releases published

Packages

No packages published