Diode is an open-source blockchain-based peer-to-peer network that enables developers to create applications for various decentralized projects. One of the popular applications that is being developed recently is using Diode as a blockchain implementation of Ngrok.
To use Diode, the first open-source, blockchain-based Ngrok alternative, written in Go, install the Diode Client using the curl command:
$ curl -Ssf https://diode.io/install.sh | sh
Go to https://diode.io/download/.
Open a terminal window and run the curl command so that it installs the Diode Client.
Or, you can build from source: https://github.com/diodechain/diode_go_client
Here’s what it looks like after you installing the Diode Client:
Before we had a diode init command, at the moment we’ve made some changes and you no longer need the init command in client. Now you can simply publish or browse resources through the Diode network without any initialization.
If you visit Diode’s prenet website, you can see a list of Diode fleet contracts that are already created. Fleet contracts are strings of letters and numbers. Protected resources are set in Diode’s fleet contracts (“protected” is governed by the fleet contract whitelist); private resources are set in your local machines (“private” is setup by the command).
Then, you want to publish your local port to the Diode Network. In your terminal window, type:
$ diode publish -public 3030:3030
Here’s what the output looks like:
This binds your local port to a Diode port. We are publishing as “public” so anyone can view it (can also use “protected” or “private”)
Now anyone can access your website through our gateway “[address].diode.link”!
Here’s a bonus – your website address can use a human readable name. Register your Blockchain Name System (BNS) custom domain: https://diode.io/prenet/#/dns.
Check out the Diode FAQs to learn more about Diode. To learn more about the source code, check out diodechain/diode_go_client on Github.