This is a Handshake explorer front-end developed based on Angular10 using API provided by hns-backend. The Handshake explorer can display information about Handshake, such as blocks, addresses, transactions, names, and mining pools.
npm install
- All the configuration files are under
src/environments
. The default configuration file isenvironment.ts
. In--prod
mode,environment.prod.ts
will be used.
- When running locally, you need to configure the API proxy to forward the request to the correct route. Create a file
proxy.conf.json
under the directorysrc/
, and configure it as follows, wheretarget
can be configured as thehns-backend
service run by yourself:
{
"/api": {
"target": "http://e.hnsfans.com/api",
"secure": false,
"changeOrigin": true,
"logLevel": "debug",
"pathRewrite": {
"^/api": ""
}
}
}
- In the
src/environments/
, copyenvironment.ts
and rename it toenvironment.prod.ts
; if there is aGoogle Tag Manager
configuration, you can configure the ID in the file. npm run build