textileio / community

Textile community repo. Includes a sub-project for documentation 📚 and a discussion board for ideas & questions.
https://docs.textile.io/
MIT License
101 stars 44 forks source link

Complete example on using ThreadsDB and creating a Database #131

Closed theefer closed 4 years ago

theefer commented 4 years ago

All the code samples for ThreadsDB omit key parts that make it very hard to know how to use the API in practice.

The databases, collections, etc examples all omit the details of Database creation (new Database(...)). The multi-user threads seems to give a few hints but it's not clear whether it's canonical use. The only example I found was in the react-3box-threadsdb example, but again it's not clear whether it's the simplest canonical use.

carsonfarmer commented 4 years ago

See also https://github.com/textileio/js-threads/issues/63