Skycoin Explorer is a tool to interact with Skycoin ecosystem.
You can check blocks, transactions and their states.
Table of Contents
- Docker images
- API documentation
go>=1.10 node>=v6.9.0 npm>=3.10.10
The server is written in golang.
The golang server returns the static content from
dist/ and proxies a subset of the skycoin node API.
As an Angular CLI projects, Node 6.9.0 or higher, together with NPM 3 are required.
After cloning the project, you will need to run
The angular code is compiled to the
If you want to run Explorer on Docker refer to Docker instructions
JSON formatted API docs:
Run a skycoin node
git clone github.com/skycoin/skycoin cd skycoin ./run.sh
Build the explorer frontend
Note: if you do not want to install NPM or build the frontend, you can use a docker image to run the explorer.
Run the explorer
This must be run from the same directory that contains
The explorer assumes that the skycoin node is running on
localhost:6420 by default.
To point it at a different address:
explorer can be run in api-only mode, which will expose the JSON API but not serve the static content from
After changing the angular frontend, it should be compiled and committed to the repo.
This is to simplify deployment of the application, and allow users to run it themselves without
installing node and npm then running
npm install and
npm run build.
Compiling the angular frontend
explorer.go should be formatted with
goimports. You can do this with:
You must have goimports installed (use
If you are running a Skycoin node normally, you can run the e2e tests with:
npm run e2e
If you are running a Skycoin node using the test database (
blockchain-180.db), you can run the e2e tests with:
npm run e2e-blockchain-180
The second method is the one used in Travis.
explorer.go to a binary:
Allow it to bind to port 80 using
sudo setcap 'cap_net_bind_service=+ep' ./explorer
Run it on port 80: