The DXOS Naming Service (DXNS) is a custom blockchain built using Cosmos SDK.
Module | Status | Public URL |
---|---|---|
DXOS DOCS DXNS | https://dxos-docs-wns.netlify.app/wns/ |
- Install latest
wire
CLI before setting updxnsd
. - Install golang 1.14.0+ for the required platform.
- Test that
golang
has been successfully installed on the machine.
$ go version
go version go1.14.9 darwin/amd64
Set the followin ENV variables (if go mod
has never been used on the machine).
mkdir -p $HOME/go/bin
echo "export GOPATH=$HOME/go" >> ~/.profile
echo "export GOBIN=\$GOPATH/bin" >> ~/.profile
echo "export PATH=\$PATH:\$GOBIN" >> ~/.profile
echo "export GO111MODULE=on" >> ~/.profile
source ~/.profile
Clone the repo then build and install the binaries.
$ cd ~/wireline
$ git clone git@github.com:wirelineio/dxns.git
$ cd dxns
$ make install
Test that the following commands work:
$ dxnsd help
$ dxnscli help
$ ./scripts/setup.sh
Start the node:
$ ./scripts/server.sh start
Test if the node is up:
$ ./scripts/server.sh test
View the logs:
$ ./scripts/server.sh log
Stop the node:
$ ./scripts/server.sh stop
wire
CLI provides commands for publishing and querying DXNS records.
See https://github.com/wirelineio/registry-client#tests
The GQL server is controlled using the following dxnsd
flags:
--gql-server
- Enable GQL server (Available at http://localhost:9473/graphql).--gql-playground
- Enable GQL playground app (Available at http://localhost:9473/console).--gql-port
- Port to run the GQL server on (default 9473).
See dxnsd/gql/schema.graphql
for the GQL schema.