Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 661 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 661 Bytes

registrar-middleware

registrar-middleware is a very simple API that proxies authenticated requests to the nOS name-service smart contract.

Installation

  1. Install dependencies: yarn install
  2. (optional) Copy env file: cp .env.local.example .env.local

Usage

Running registrar-middleware depends on the NETWORK, AUTH_TOKEN, CONTRACT_ADDRESS and CONTRACT_WIF environment variables being set. Either specify these via an .env.local file, or pass them as command line arguments when running the below commands.

Production

$ yarn start

Development

$ yarn dev