gundb / feature-requests

What extra features do you want for gun? Discuss here!
10 stars 0 forks source link

NativeScript #26

Open pipeserrano opened 7 years ago

pipeserrano commented 7 years ago

How can I use it in a NativeScript project?

amark commented 7 years ago

@pipeserrano thanks for moving this from https://github.com/amark/gun/issues/391 , gonna close that and open the discussion here to people smarter than me. I'll mention it on gitter too.

d3x0r commented 7 years ago

I can throw out a couple things; but I'm sure you could have as easily found this so I'd hope it's not news.

https://www.nativescript.org/blog/how-to-use-any-npm-module-with-nativescript 'A (partial) solution What Browserify does for a browser, we can do for the NativeScript runtime. However, we don't want to impose a tool like Browserify or Webpack on you and your project (and we need a bit more flexibility as well), so the nativescript-nodeify plugin was made as a special purpose tool to swap out built-in Node modules from anything in your dependency tree by NativeScript compatible implementations.' not it I'm just guessing after a quick browse of what is 'nativescript' https://www.npmjs.com/package/nativescript-nodeify

amark commented 7 years ago

@d3x0r makes some other good recommendations starting at https://gitter.im/amark/gun?at=5951567676a757f808aa7a05

romcok commented 5 years ago

I have working example. You can try it here https://play.nativescript.org/?template=play-vue&id=Xlexhs But I think it will need some changes to work with localStorage and WebCrypto.

img_2023