Validators explorer for Kusama Network
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Kusama Overview app consists of three parts:
- parser-light
- api
- ui
With parser-light
app is continuously check for the new blocks and save reqired information to the database.
ui
part used to display the user interface and retrieve the actual data from the database using the api
.
You need to have Docker and docker-compose installed on your machine to start the application.
git clone https://github.com/genesis-lab-team/kusama-overview.git
cd kusama-overview
cd parser-light && cp .env.example.docker .env
cd ../api && cp .env.example.docker .env
cd ../ui && cp .env.example.docker .env && cd ..
You can edit variables in .env files if you need. For example you can replace WSNODE=ws://polkadot-node:9944/
by WSNODE=wss://kusama-rpc.polkadot.io/
in parser-light/.env
if you want to use remote public node instead of the local one
See the full list of .env variables
parser-light/.env
Variable | Default value | Description |
---|---|---|
WSNODE | ws://polkadot-node:9944/ | Polkadot node RPC endpoint |
APP_API_PORT | 4002 | Kusama Overview app API port |
DB_NAME | kusama-overview | Database name |
DB_LOCATION | localhost | MongoDB host |
DB_PORT | 27017 | MongoDB port |
api/.env
Variable | Default value | Description |
---|---|---|
APP_API_PORT | 4002 | Kusama Overview app API port |
DB_NAME | kusama-overview | Database name |
DB_LOCATION | localhost | MongoDB host |
DB_PORT | 27017 | MongoDB port |
ui/.env
Variable | Default value | Description |
---|---|---|
VUE_APP_API_PORT | 4002 | Kusama Overview app API port |
docker-compose up
If you want to use remote polkadot node instead of the local one you can start only app and mongo containers with docker-compose up mongo kusama-overview-app
command
You can see the application running by visiting http://127.0.0.1:3002 url in your browser
git pull
docker-compose down
docker-compose pull
docker-compose up --build
If you want to use the app without Docker you need to setup next tools first:
git clone https://github.com/genesis-lab-team/kusama-overview.git
cd kusama-overview
npm ci
cd parser-light && npm ci
cd ../api && npm ci
cd ../ui && npm ci && cd ..
cd parser-light && cp .env.example .env
cd ../api && cp .env.example .env
cd ../ui && cp .env.example .env && cd ..
You can edit variables in .env files if you need. For example you can replace WSNODE=ws://localhost:9944/
by WSNODE=wss://kusama-rpc.polkadot.io/
in parser-light/.env
if you want to use remote public node instead of the local one
See the full list of .env variables
parser-light/.env
Variable | Default value | Description |
---|---|---|
WSNODE | ws://localhost:9944/ | Polkadot node RPC endpoint |
APP_API_PORT | 4002 | Kusama Overview app API port |
DB_NAME | kusama-overview | Database name |
DB_LOCATION | localhost | MongoDB host |
DB_PORT | 27017 | MongoDB port |
api/.env
Variable | Default value | Description |
---|---|---|
APP_API_PORT | 4002 | Kusama Overview app API port |
DB_NAME | kusama-overview | Database name |
DB_LOCATION | localhost | MongoDB host |
DB_PORT | 27017 | MongoDB port |
ui/.env
Variable | Default value | Description |
---|---|---|
VUE_APP_API_PORT | 4002 | Kusama Overview app API port |
npm run development
You can see the application running by visiting http://127.0.0.1:3002 url in your browser
git pull
npm ci
cd parser-light && npm ci
cd ../api && npm ci
cd ../ui && npm ci && cd ..
npm run development
Add -f docker-compose.production.yml
to every docker-compose command