Skip to content

rule110-io/nscan

Repository files navigation

nScan - A neat explorer for the NKN blockchain

Codacy Badge

About

This is the code of nScan - the official NKN mainnet explorer. It utilizes the NKN open API to get its data.

Create .env-file

Create an .env-file in the project root containing the following (if you're using the official NKN open API just copy/paste)

PUSHER_SECRET = "a2b7c363f4b1e5139e6e"
PUSHER_CLUSTER = "mt1"
PUSHER_HOST = "openapi.nkn.org"
PUSHER_PORT = 8443

Build Setup

# install dependencies
$ yarn install

# serve with hot reload at localhost:3000
$ yarn run dev

# build for production and launch server
$ yarn run build
$ yarn start

# generate static project
$ yarn run generate

For detailed explanation on how things work, checkout Nuxt.js docs.

Checking for missing translations

yarn vue-i18n-extract report -v "./{components,layouts,pages}/**/*.?(js|vue)" -l "./lang/*.?(js|json)"