GithubHelp home page GithubHelp logo

isabella232 / rns-manager-react Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rsksmart/rns-manager-react

0.0 0.0 0.0 5.66 MB

RNS Manager - ⌨️ buidling

Home Page: https://manager.rns.rifos.org/

License: MIT License

JavaScript 63.19% CSS 32.57% HTML 0.21% Dockerfile 0.04% SCSS 3.99%

rns-manager-react's Introduction

logo

RNS Manager

Manage your RNS domains
Mainnet: https://manager.rns.rifos.org
Testnet: https://testnet.manager.rns.rifos.org

Total alerts Language grade: JavaScript Quality Gate Status

Run for development

Requisites:

Install dependencies:

yarn

Run locally

  1. Run a local blockhain:
    • Preferred: RSK node
    • Other options: Ganache or Truffle develop
  2. Deploy RNS Suite on your local blockchain.
  3. Set the contract addresses in /src/app/config/contracts.local.json. The contract names are the same as the JSON variable name except for the following:
    • rif variable is the ERC677 contract
    • registrar variable is the TokenRegistrar contract

If you are not using localhost:8545 as your network, change the .env variable in .env.local

yarn start

Connect your browser wallet to local environment using 'Custom RPC' option

Run locally against public networks

For RSK Mainnet

yarn start:mainnet

For RSK Testnet

yarn start:testnet

Run tests

The testing suite will first install the RNS suite on a local blockchain before running. To make sure this works properly, start Ganache, and set the URL and port in /tests/setEnvVars.js.

Run the linter and unit tests:

yarn test

Run a test watcher:

yarn test:watch

Update snapshots and run watcher:

yarn test:watch -u

Branching model

  • main has latest release. Merge into main will deploy to S3. Do merge commits.
  • develop has latest approved PR. Do squash & merge.

PRs:

  • Use branches pointing to latest commit in develop
  • Need to pass ci and LGTM
  • Will deploy to Github Pages

Build

yarn build

For RSK Mainnet:

yarn build:mainnet

For RSK Testnet:

yarn build:testnet

Running production builds

Mainnet:

docker build -t rns-manager-mainnet . -f mainnet.Dockerfile
docker run -d --name rns-manager-mainnet -p 5000:5000 rns-manager-mainnet

Testnet:

docker build -t rns-manager-testnet . -f testnet.Dockerfile
docker run -d --name rns-manager-testnet -p 5001:5001 rns-manager-testnet

rns-manager-react's People

Contributors

alebanzas avatar bcodesido avatar dependabot[bot] avatar herrerameri avatar ilanolkies avatar javiesses avatar jessgusclark avatar juan-rsk avatar miltonwg 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.