clebersonjf83 / Block-explorer

Lunes block explorer

Home Page:https://blockexplorer.lunes.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lunes Explorer

Lunes Blockchain Explorer

Demo

Demo is available on http://blockexplorer-testnet.lunes.io

Setup

Install NodeJS

Install gulp:

npm install -g gulp-cli

Run locally

npm install bower npm install

node server.js

Open http://localhost:3000 in browser. You'll see testnet version of explorer.

Build

Build process creates ./distr directory for testnet, mainnet and devnet explorer configurations. To create distribution, run:

gulp distr

Deployment

Prerequisites

To enable deployment you need to provide access keys from Amazon S3. This is done via environment variables that need to be set before deployment script is invoked.

  • EXPLORER_AWS_ACCESS_KEY_ID - access key ID
  • EXPLORER_AWS_ACCESS_SECRET - access key secret

See Amazon S3 access for further details. These values SHOULD NEVER be stored in git repo.

Commands

Deployment is automated via publish task, which is quite smart to upload only changed files since the last deployment. By default publish will deploy each configuration to their corresponding location on Amazon S3.

To deploy testnet version run:

gulp publish-testnet

To deploy mainnet version run:

gulp publish-mainnet

Deploy script will automatically build the project and deploy selected configuration.

About

Lunes block explorer

https://blockexplorer.lunes.io

License:Apache License 2.0


Languages

Language:CSS 73.5%Language:HTML 14.4%Language:JavaScript 12.1%Language:Dockerfile 0.0%