🔎 Metronome Token Explorer
- Node.js v8
- Metronome API
- ETH Tracer
- Ethereum node (i.e. Geth or Parity)
The following environment variables are needed for the explorer to work:
-
MET_API_URL
: The Metronome JSON-RTP API server URL.I.E.
http://api.metronome.io
. -
ETH_NODE_URL
JSON RPC URL of the Ethereum node.I.E.
http://node.metronome.io:8545
. -
TRACER_URL
: API URL of the Ethereum Parity tracer.I.E.
http://tracer.metronome.io
. -
ETH_CHAIN
: Name of the Ethereum chain (mainnet
orropsten
).I.E.
mainnet
.
# Install dependencies
npm install
# Serve with hot reloading at localhost:3004
npm run dev
Remember setup the next ENV variables:
ETH_CHAIN
ETH_NODE_URL
MET_API_URL
NEW_RELIC_API_KEY
TRACER_URL
# Install dependencies
npm install
# Run nuxt release build
ETH_CHAIN=main \
ETH_NODE_URL=ws://node.metronome.io:8546 \
HOST=0.0.0.0 \
MET_API_URL=ws://api.metronome.io \
NEW_RELIC_API_KEY="xxxxxxxx" \
PORT=8080 \
TRACER_URL=http://tracer.metronome.io \
npm start
For detailed explanation on how things work, checkout the Nuxt.js docs.
MIT