merembablas / arascan

Engine that power https://scan.nuchain.network

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ARAScan

Block and data explorer for Nuchain network.

Minimal and optimized version of Subscan.

Engine that power ARAScan.

Sequencer

Use to iterate through blocks from higher to lower number of blocks and process them.

Run:

yarn start:sequencer

Parameters:

  • --no-skip-limit - process without skip limit.
  • --all - process all blocks.

Development Cycle

Run the database using docker:

docker-compose up -d mongodb

API server

To start API server run the following command:

yarn start:api-server

Make sure the database already running and ready to accept connections.

Web UI

To start Web UI server run the following command:

yarn start:web-ui

Sync with production database

Sometimes we need to debug using production database, we can download from backup and restore to local database, for this purpose we can use the following command:

# backup and download database from remote
$ ./etc/script/get_latest_backup_db.sh
# restore to local database
$ ./etc/script/sync_latest_backup_db.sh

About

Engine that power https://scan.nuchain.network

License:Apache License 2.0


Languages

Language:TypeScript 35.4%Language:JavaScript 33.4%Language:CSS 13.7%Language:Pug 10.0%Language:Vue 6.5%Language:Shell 0.5%Language:Dockerfile 0.5%