This short guide will help you setup a local blockchain explorer. This will enable you to browse and search your local Testnet (or any other ARK based) blockchain from a web application (exactly the same as in our official Blockchain Explorer).
For production deployment and customisation options head over here:
git clone https://github.com/arkecosystem/explorercd explorer
explorer root folder run
yarn install command. This will build and install the required modules and packages.
There are several run modes available for the Explorer package. You can run it as official Mainnet or Devnet explorer, or have it run as a simple local express server, it is up to your needs.
For our simple task of viewing, browsing and searching the local Testnet blockchain, all we need to do is run the following command from the Explorer root folder:
This command will start the Explorer in dev mode and it will search for a localhost core node, that should be running on
127.0.0.1:4003 by default.
yarn serve:testnet command, you should see the following:
DONE Compiled successfully in 11030msNo type errors foundVersion: typescript 3.6.3Time: 6973msApp running at:- Local: http://localhost:8080/- Network: http://192.168.0.178:8080/Note that the development build is not optimized.To create a production build, run yarn build.
Head over to http://localhost:8080/ to view contents of local running blockchain with Testnet environment setup.