Dapp Development Tutorial released Dapp to the online
1 Registration
Register to Testnet
Asch-cli-h <testnet host>-P <testnet port> registerdapp-e "<your secret>"-F Path/to/dapp.json
Register to Mainnet
Asch-cli-h <mainnet host>-P <mainnet port>-M registerdapp-e "<your secret>"-F Path/to/dapp.json
Where Dapp.json is the meta-information file generated when the Dapp is created
These two commands can be executed on any machine, only need to provide the host and port parameters can be registered through the remote node, the default host is localhost, the default port is 4096 main, if it is registered to mainnet, need to add additional-m parameter 2 Modify the Genesis block
Sometimes you may need to modify the Genesis block, for example, when you use a creator password for local development, you want to use another password when posting to the online or use a different side-link trustee, you can choose to modify the Genesis block in addition to recreating the Dapp.
# CD <asch dir>
asch-cli dapps-c
After executing this command, you will be prompted with a series of questions, similar to when creating Dapp, you can re-enter the Genesis account password, the trustee's public key list, the built-in asset information, and so on. 3 Installation and uninstallation
Installation
ASCH-CLI Dapps-i
Unloading
ASCH-CLI Dapps-u
These two commands will prompt you to enter 3 parameters, namely Dapp ID, node address, node password, where the node password is configured in Config.json Masterpassword