Skip to content

woss/substrate-telemetry

 
 

Repository files navigation

Polkadot Telemetry

Getting Started

To run the backend, you will need cargo to build the binary. We recommend using rustup.

To run the frontend make sure to grab the latest stable version of node and install dependencies before doing anything:

nvm install stable
yarn

Terminal 1 - Backend

cd backend
cargo build --release
./target/release/telemetry

By default, telemetry will listen on the local interface only (127.0.0.1) on port 8000. You may change both those values:

Use another port:

PORT=8123 telemetry

You may also change the the listening interface. This is especially required if you are using docker:

BIND=0.0.0.0 telemetry

Terminal 2 - Frontend

yarn start:frontend

Terminal 3 - Node

Follow up installation instructions from the Polkadot repo

./target/release/polkadot --dev --telemetry-url ws://localhost:8000/submit

Run via Docker

To run via docker make sure that you have Docker Desktop

docker-compose up --build -d
  • -d stands for detach, if you would like to see logs i recommend using Kitmatic or dont use the -d
  • --build will build the images and rebuild, but this is not required everytime
  • If you want to makes UI changes, there is no need to rebuild the image as the files are being copied in via volumes.

Now navigate to localhost:3000 in your browser to view the app.

About

Polkadot Telemetry service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 61.6%
  • Rust 29.3%
  • CSS 7.2%
  • JavaScript 1.3%
  • HTML 0.3%
  • Dockerfile 0.2%
  • Shell 0.1%