A Portal into the Polkadot and Substrate networks. Provides a view and interaction layer from a browser.
This can be accessed as a hosted application via https://polkadot.js.org/apps/
The repo is split into a number of packages, each representing an application. These are -
yarn run vanitygen --match <string>
runs the generator as a Node CLI app. (Orders of a magnitude faster due to the use of libsoldium bindings)In addition the following libraries are also included in the repo. These are to be moved to the @polkadot/ui repository once it reaches a base level of stability and usability. (At this point with the framework being tested on the apps above, it makes development easier having it close)
Contributions are welcome!
To start off, this repo (along with others in the @polkadot family) uses yarn workspaces to organise the code. As such, after cloning dependencies should be installed via yarn
, not via npm, the latter will result in broken dependencies.
To get started -
git clone https://github.com/polkadot-js/apps <optional local path>
yarn
yarn run start
Should you not run a local Node, you can connect to a remote node on the POC-2 network with the WS_URL
environment variable. For example - the apps entry point can be launched with a WebSocket connection to Polkadot POC-2 with WS_URL=wss://poc-2.polkadot.io:9944 yarn run start
and accessing the application of http://localhost:3000
There are additional environment UI flags that change both the theme and mode -
UI_MODE=light|full
switches from a full (the default) to a light mode interface that only has specific applications highlighted.UI_THEME=substrate|polkadot
switches from a Polkadot theme (the default) to a Substrate-branded UIYou can run a docker container via -
docker run --rm -it --name polkadot-ui -p 80:80 chevdor/polkadot-ui:latest
To build a docker container containing local changes -
docker build -t chevdor/polkadot-ui:latest .