The Theta Ledger Explorer project contains a frontend web application for the Theta explorer, a backend api application to provide data to the frontend, and a blockchain data crawler to download data from the blockchain.
Please click here to see the Theta Ledger Explorer in action.
The job of blockchain data crawler is to download and convert the blockchain data to a format more friendly for blockchain data exploration. In our current implementation, it uses a NoSQL database Aerospike to store the converted data. Thus we need to install Aerospike first. Below is the instruction to install Aerospike on Ubuntu Linux. For more information on installing aerospike on different systems, please check here.
wget -O aerospike.tgz 'https://www.aerospike.com/download/server/latest/artifact/ubuntu14'
tar -xvf aerospike.tgz
cd aerospike-server-community-<version>-ubuntu14.04
sudo ./asinstall
After installing Aerospike, we can start the blockchain data crawler with the following commands.
cd backend/crawler
npm install
node run
Now the crawler starts to read the data from blockchain, perform necessary transformation, and stores the converted data in the database. Next we can launch the backend API microservice, and the frontend application microservice following the procedure below.
cd backend/explorer-api
npm install
node run
Now the explorer API application is running at https://localhost:9000
cd frontend
npm install
sudo node server.js
Now the frontend application is running at https://localhost
The Theta Ledger Explorer reference implementation is licensed under the MIT License.