# Build and run the app
# Building the
This repo contains a complete
nameservice application. If you want to build this completed version Go 1.13.0+ is required.
Add some parameters to environment is necessary if you have never used the
go mod before.
Now, you can install and run the application.
If you have not completed the tutorial then you can follow the below cloning instructions:CopyCopy
# Running the live network and using the commands
To initialize configuration and a
genesis.json file for your application and an account for the transactions, start by running:
NOTE: In the below commands addresses are pulled using terminal utilities. You can also just input the raw strings saved from creating keys, shown below. The commands require
jqto be installed on your machine.
NOTE: If you have run the tutorial before, you can start from scratch with a
nsd unsafe-reset-allor by deleting both of the home folders
rm -rf ~/.nscli ~/.nsd
NOTE: If you have the Cosmos app for ledger and you want to use it, when you create the key with
nscli keys add jackjust add
--ledgerat the end. That's all you need. When you sign,
jackwill be recognized as a Ledger key and will require a device.
After you have generated a genesis transaction, you will have to input the genTx into the genesis file, so that your nameservice chain is aware of the validators. To do so, run:
and to make sure your genesis file is correct, run:
You can now start
nsd by calling
nsd start. You will see logs begin streaming that represent blocks being produced, this will take a couple of seconds.
You have run your first node successfully.Copy
# Run second node on another machine (Optional)
Open terminal to run commands against that just created to install nsd and nscli