GithubHelp home page GithubHelp logo

lucidsamuel / nns-dapp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dfinity/nns-dapp

0.0 0.0 0.0 52.66 MB

The Dapp of the Internet Computer's Network Nervous System.

Home Page: https://nns.ic0.app/

License: Other

Shell 1.01% JavaScript 0.96% Rust 61.54% TypeScript 27.66% HTML 0.06% Dockerfile 0.10% SCSS 0.03% Svelte 8.64%

nns-dapp's Introduction

Network Nervous System Dapp

The NNS front-end Dapp is a dapp that provides a user friendly way to interact with the NNS of the Internet Computer. With it, you can:

  • Send/receive ICP
  • Stake neurons
  • Participate in the governance of the IC
  • Create and top up canisters

Official build

The official build should ideally be reproducible, so that independent parties can validate that we really deploy what we claim to deploy.

We try to achieve some level of reproducibility using a Dockerized build environment. The following steps should build the official Wasm image

./scripts/docker-build
sha256sum nns-dapp.wasm

The resulting nns-dapp.wasm is ready for deployment as qoctq-giaaa-aaaaa-aaaea-cai, which is the reserved principal for this service.

Our CI also performs these steps; you can compare the SHA256 with the output there, or download the artifact there.

Development

Development relies on the presence of a testnet that is setup with the II, governance, ledger, and cycle minting canisters. Fully local development is unfortunately not yet supported and the tools for setting up a testnet are not yet available publicly. It is on the roadmap to make these tools available publicly for developers.

When deploying the governance, ledger, and cycle minting canisters to the testnet you must first create a file called test-accounts.json in the root of the IC repo whose contents is:

{
  "init_ledger_accounts": [
    "5b315d2f6702cb3a27d826161797d7b2c2e131cd312aece51d4d5574d1247087"
  ]
}

Then run the following from the root directory of the IC repo:

./testnet/tools/icos_deploy.sh --git-revision <commit_id> nnsdapp --ansible-args "-e @$PWD/test-accounts.json"

To deploy the NNS Dapp canister to the testnet, run the following:

./deploy.sh testnet

You can now access the frontend using:

open "https://$(dfx canister --network testnet id nns-dapp).nnsdapp.dfinity.network"

To work on the UI locally, either use your IDE, or run the following:

cd frontend
npm ci
npm run dev

Links

Some useful links:

  • See the HACKING document for some information about local development

Other information resources:

nns-dapp's People

Contributors

alin-at-dfinity avatar andrewwylde avatar anishh2003 avatar bitdivine avatar daniel-bloom-dfinity avatar danielthurau avatar davidm-d avatar dprats avatar dubovitskaya avatar dylancm4 avatar egeyar avatar frederikrothenberger avatar ggreif avatar gilbert-jolly avatar hansl avatar hpeebles avatar ielashi avatar lmuntaner avatar megrogan avatar mstrasinskis avatar ninegua avatar nmattia avatar nomeata avatar nzoghb avatar peterpeterparker avatar vusirikala avatar wackyleo459 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.