-
Notifications
You must be signed in to change notification settings - Fork 66
Build custom Waves Explorer for your node
Suppose we are working in ubuntu (in other systems should be similar)
sudo apt-get install nodejs npm git
For windows things are different (what's why you probably love it) - you have to install tools manually:
This is to set up build pipeline and dependency management.
npm install -g gulp-cli bower
Downloading source code and installing dependencies
git clone https://github.com/wavesplatform/WavesExplorerLite.git
cd WavesExplorerLite
npm install
Building a distribution
gulp distr
You can find distribution packages grouped by network type in ./distr
directory. Waves Platform team uses three main
configurations: devnet
, testnet
and mainnet
. Each configuration has it's own config file ./src/js/config.<configuration name>.js
If you're going to customize client look and feel or just change it's functionality, you need to understand how to test your changes locally. Ready to test package is created by gulp via command line:
gulp build
You can start local server using
node server.js
Just use your browser to open http://localhost:3000
If you want to create your own version of explorer to existing network, there's no need to configure anything. It works out of the box.
In this case you need to know how chain parameters work. The network uses code symbol which should match the same setting of your node. You also have to change node address. Please make sure that this address is accessible from your customers' machines.