tgrospic / rnode-client-js

Web example https://tgrospic.github.io/rnode-client-js
MIT License
19 stars 19 forks source link

minimum dependencies for static web page dApp #14

Open dckc opened 4 years ago

dckc commented 4 years ago

I found that the static web page makes a great starting for RChain dApps, but the back-end-related dependencies are sort of a pain.

@tgrospic agreed:

I want to isolate grpc part in different repo.

dckc commented 4 years ago

I'm really looking forward to this; if you have any progress to share, please do.

I'll be finish with the split of web and grpc part in a couple of days. -- https://github.com/rchain-community/rv2020/issues/54#issuecomment-689538667

tgrospic commented 4 years ago

@dckc here is the initial version of the new rnode-client-js repo with only web related stuff. https://github.com/tgrospic/rnode-client-js-dev-test

Testing version of the site is published here. https://tgrospic.github.io/rnode-client-js-dev-test

Here is also PR #17 on the main repo.

Most of the library functions now have JSDoc with defined types but it's still WIP.

It also uses htm library and template literals for definitions of render functions to be more in HTML style. It's nice that GitHub already recognizes the syntax. image

dckc commented 4 years ago

This is great!

I see @babel/runtime is still in there... is that a whole JS parser and such? Ah... I guess not; it looks like just a little bit of runtime support for generators and such.