Skip to content

juan-rsk/rns-manager-react

 
 

Repository files navigation

logo

RNS Manager

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

CircleCI Total alerts Language grade: JavaScript Quality Gate Status

Run locally

Requisites:

Install dependencies:

yarn
  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 on 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

Develop

  • master points to last productive build
  • develop points to last approved pull request
  • Other branches are feature branches, based on develop

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

Packages

No packages published

Languages

  • JavaScript 63.0%
  • CSS 33.0%
  • SCSS 3.8%
  • Other 0.2%