Skip to content
This repository has been archived by the owner on Jul 7, 2021. It is now read-only.

autonomoussoftware/metronome-explorer

Repository files navigation

Metronome Explorer

🔎 Metronome Token Explorer

Build Status Code Style

Index

  1. Requirements
  2. Configuration
  3. Dev Setup
  4. Prod Setup
  5. License

Requirements

  • Node.js v8
  • Metronome API
  • ETH Tracer
  • Ethereum node (i.e. Geth or Parity)

Configuration

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 or ropsten).

    I.E. mainnet.

Development Setup

# Install dependencies
npm install

# Serve with hot reloading at localhost:3004
npm run dev

Prod Setup

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.

LICENSE

MIT