Giter VIP home page Giter VIP logo

governance-ui's Introduction

CI status CT status

Polkadot Delegation Dashboard is a PWA - or Progressive Web App - with a focus on efficiency and offline support in the context of Web3.

As a pure web application, it doesn't depend on remote backend to operate but connects to Polkadot nodes. Some data will be fetched to enhance the experience from github.com and polkassembly.io/, although the plan short term is to become fully decentralized.

Use

Register as a delegate

Anyone can register themselves as a delegate.

To add a new delegate, edit this file and push a pull request. Once approved, changes will be transparently picked up and made available to anyone in the application.

The following table outlines the structure of a delegate entry:

Element Key Required Notes
Delegate Name name Yes The chosen name of the delegate.
Delegate Address address Yes The chain address of the delegate.
Manifesto manifesto Yes A description of your goals as a delegate. Supports markdown.

Build

The full website can be started using yarn build. PUBLIC_URL can be set to the final root URL for the considered deplyment environment if required.

Development

A local dev environment can be started using yarn dev.

Testing

Unit tests can be run via yarn test:unit.

Run end-to-end tests via the following steps:

# Setup
yarn
npx playwright install

# Run webapp in a dedicated tab
yarn dev

cd test/

# Run chain in a dedicated tab
yarn zombienet:native

# Launch tests
URL=http://127.0.0.1:1234/?rpc=ws://127.0.0.1:9984 yarn test:e2e

Using containers

You may build a container using:

./scripts/build-container.sh

then run your container with:

podman run --d -p 8080:80 localhost/polkadot-delegation-dashboard

and access the Delegation Dashboard at http://localhost:8080/

governance-ui's People

Contributors

abdbee avatar chevdor avatar dependabot[bot] avatar disco7 avatar dnlklmn avatar dvalles avatar gioyik avatar globalsg avatar gunit2481 avatar hamidra avatar ilhanu avatar jeluard avatar joepetrowski avatar leemo94 avatar mathcryptodoc avatar matteo-sbond avatar miabarbir avatar nelinam avatar nick-1979 avatar nickdunford avatar paradox-tt avatar paride1 avatar paulormart avatar pioneerzxc avatar pmensik avatar polkadotcurry avatar simonkraus avatar suleymann85 avatar tugytur avatar yx11xy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.