r/programming • u/rafalsk • Jul 17 '22
Create decentralized applications with JavaScript, HTML and CSS
https://gridnet.org/wpp/index.php/2022/07/12/create-ui-dapps-right-now-developer-guide/
122
Upvotes
r/programming • u/rafalsk • Jul 17 '22
1
u/rafalsk Jul 17 '22
Great question.
Let me answer. It is not only possible it is already a reality.
Head over to https://test.gridnet.org to see some of these in action. Their corresponding source codes are available at our GiitHub repository right over here.
Now, let us be more specific on how it is possible.
The article is quite solid on that I believe, but to bring things into perspective.
There are nodes maintaining the decentralized network. They run a decentralized state-machine. Same as Ethereum.
Now, each node is capable of delivering, to a web-browser a JavaScript sub-system, through the embedded web-server, which makes all of the functionalities wrapped around nicely accessible JavaScript (ECMA 6 based) APIs. Everything object and event-driven.
As for data storage. There is no need for MySQL as nodes maintain a decentralized file system of their own.
In fact it is a two-tier system.
First is the full-redundancy storage, directly on the decentralized state-machine (implemented as a Merkle Patricia Trie, with all the integrity and consistency guarantees).
The second type of storage, is a crypto incentivized modification of Torrent protocol (including its Web-Torrent variance).
There is no need for PHP as nodes execute #GridScript.
Should you have additional questions please do not ever hesitate to ask!