name | category |
---|---|
Geth DAPP Loading Proposal |
To have a simple way to load and start Dapps vinay and I came up with a great idea:
-
Dapp packages can be downloaded as .zip/.rlp/.dapp
- they will contain a
dapp.json
with author info and a dapp name and version. - and a
swarm.json
, with all the file paths and hashes, see here)
- they will contain a
-
run
$ geth install mydapp.zip
, which will verify, extract and copy the dapp locally somewhere.
Note This could also get a name reg domain and looks up the hash an content online, fetches it and installs it. -
run
$ geth start mydapp
will start a node, with the correct options (rpc, corsdomain etc) and start a local server which points with its root into the dapps folder and resolves path and files through theswarm.json
-
goto
https://localhost:5555
to see you dapp running (needs to be thought of, as dapps would share localstorage, maybe use a different and reusable port per dapp)
- run
$ geth update mydapp.zip
, which will extract, and overwrites the old dapp files
-
run
$ geth bundle myDappFolder/dist/
, which will create a dapp bundle from a folder, to share with others. -
run
$ geth deploy myDappFolder/dist/
could save it to pastebin and register it in namereg.