This is the code of nScan - the official NKN mainnet explorer. It utilizes the NKN open API to get its data.
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
# 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.
yarn vue-i18n-extract report -v "./{components,layouts,pages}/**/*.?(js|vue)" -l "./lang/*.?(js|json)"