dao-xyz / peerbit

P2P database framework with encryption, sharding and search
https://peerbit.org
Apache License 2.0
180 stars 13 forks source link

Add vue and react examples. #24

Open TheRook opened 1 year ago

TheRook commented 1 year ago

Can we get this code into a repo to show that peerbit works easily with vue and react. Maybe publish bindings to npm to promote adoption?

samples that can be featured: https://gist.github.com/djmaze/9e99382f6ad364f0d77830f826c01b55 https://gist.github.com/denzuko/cdf88e39f53d609ee8393fd0296f6273

It will make it easier to have libs like this: https://www.npmjs.com/package/define-orbit https://www.npmjs.com/package/react-orbitdb https://github.com/DeFUCC/gun-vue

marcus-pousette commented 1 year ago

This is one the way, I am considering creating a dedicated repo for this. Great that you made an issue for this!

TheRook commented 1 year ago

This is one the way, I am considering creating a dedicated repo for this. Great that you made an issue for this!

This is an easy win and a good blog post. It makes it a lot easier to have featured apps and to port over a mediocre web2 app and spice it up to a killer web3 dapp. imho you can onboard the most number of devs with this change because these echo systems are so large.

marcus-pousette commented 1 year ago

I totally agree with you.

Examples are really powerful for learning. As of now I have a few ideas in mind, what could be fun

I also played around with the idea of creating an example app (or lib) where you put 'sql.js' on top of Peerbit to make it auto-shardable (and private) to give devs the idea that Peerbit is more of a coordination and transport layer than a traditional "database". A carrot for #25

Zorlin commented 1 year ago

Strong +1 for this, and a $50 USD bounty on it too.

marcus-pousette commented 1 year ago

Here is the repo, though yet without a fully working example that contains a frontend. Stay tuned

marcus-pousette commented 1 year ago