Skip to content

vechain/insight-app

Repository files navigation

VeChain Insight

Insight is a serverless VeChain explorer. It allows you to explore and search for blocks, transactions and accounts.

Try it out!

Permanent links

  • Main net - https://insight.vecha.in/#/main/txs/{txid}
  • Test net - https://insight.vecha.in/#/test/txs/{txid}

Screenshots

Homepage

Project setup

Install dependencies

yarn

Compiles with hot-reload for development

yarn serve

Compiles and minifies for production

yarn build

Build and run with Docker

docker build -t insight-app .
docker run -dp 127.0.0.1:8080:80 insight-app

or with docker compose

docker compose up -d --build

Run the app with a solo node

Insight support running using a custom solo node address to be provided via .env config

In your local machine

Create a .env file with the url of the solo node you want to connect

VUE_APP_SOLO_URL=https://localhost:8080

With docker

We can provide runtime env variables using -e

Using image from registry

docker run ghcr.io/vechain/insight-app:master -e VUE_APP_SOLO_URL=https://localhost:8080

Build local image

docker build -t insight-app 
docker run -e VUE_APP_SOLO_URL=https://localhost:8080

With compose

Use the image and pass the env variable in the compose file directly

version: "3.7"
services:
  insight:
    image: ghcr.io/vechain/insight-app:master
    hostname: insight
    container_name: insight
    environment:
      - VUE_APP_SOLO_URL=https://localhost:8669
    ports:
      - "8080:80"

Contributing

Everyone is always welcome to contribute on the codebase.