michael / hub

Substance Hub
6 stars 0 forks source link

Modularize API's #64

Open michael opened 11 years ago

michael commented 11 years ago

Oliver and I talked about the possibility of splitting the Hub into several parts. So I just started modularizing the API:

Core: This could be released as Open Source one day, it includes the authorization layer + document replication API (endpoint for RemoteStore).

Publications: That's substance.io specific and could live in a separate module one day. Also because replication and publication are decoupled. People should be able to implement their own publication workflows by just implemented a service that conforms to our Publications API spec (networks, publications, versions)

Current layout (to be discussed and improved)

@oliver---- next step would be pulling out parts from lib/documents.js into lib/hub_store.js which exposes the store api but considering authentication/collaborators etc.

obuchtala commented 11 years ago

Done this.

obuchtala commented 11 years ago

We should have a code review iteration and decide on some more quasi-principles and quasi-guide-lines.