ssbc / docs

Documentation repo
https://ssbc.github.io/docs
61 stars 15 forks source link

Is there a better way for creating a client? #8

Closed pfrazee closed 8 years ago

pfrazee commented 9 years ago

https://github.com/ssbc/docs/blob/master/intro-to-using-sbot.md#create-client

This is the current instructions... @dominictarr I know you're working on this, but is there something immediately better we can do? It's a bit ugly.

dominictarr commented 9 years ago

firstly, you shouldn't access deps of deps, that probably won't work with npm@3, if you depend on it, put it in your package.json.

We could probably simplify some of those, or wrap the boiler plate in something...

What is the motivation for easier client setup?

pfrazee commented 8 years ago

What is the motivation for easier client setup?

Just so it looks nicer to newcomers.

dominictarr commented 8 years ago

Right, so simpler to document. I think we had a library for that called ssb-client but it got old because we wern't actually using it for anything. If we are documenting something we have to maintain it and we won't maintain it unless we are using it. It would be better to have verbose documentation if we arn't gonna use that way.

pfrazee commented 8 years ago

Ok yeah I'll update ssb-client

pfrazee commented 8 years ago

Ok done https://github.com/ssbc/ssb-client