vechain / insight-app

Codebase of VeChain Insight

Home Page:https://insight.vecha.in/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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=http://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=http://localhost:8080

Build local image

docker build -t insight-app 
docker run -e VUE_APP_SOLO_URL=http://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=http://localhost:8669
    ports:
      - "8080:80"

Contributing

Everyone is always welcome to contribute on the codebase.

About

Codebase of VeChain Insight

https://insight.vecha.in/

License:GNU Lesser General Public License v3.0


Languages

Language:Vue 87.6%Language:TypeScript 8.2%Language:Dockerfile 2.1%Language:JavaScript 0.8%Language:SCSS 0.6%Language:HTML 0.5%Language:Shell 0.3%