fablo icon indicating copy to clipboard operation
fablo copied to clipboard

Question about fablo's functionalities

Open nkaramolegos opened this issue 3 years ago • 3 comments

Hello, I would like to ask:

  1. Can I use fablo for deploying a network in Kubernetes?
  2. Can I use fablo to manage the network. By managing I mean enroll/register users, create channels, deploying chaincodes, query the ledger using the REST API?
  3. How can I deploy a gateway client application (or this which use REST) to query the ledger?

nkaramolegos avatar Jan 27 '22 12:01 nkaramolegos

Hello, thanks for using Fablo! :)

  1. Can I use fablo for deploying a network in Kubernetes?

Not yet, we're slowly getting there. You can monitor this issue to be updated.

  1. Can I use fablo to manage the network. By managing I mean enroll/register users, create channels, deploying chaincodes, query the ledger using the REST API?

Partially yes. For now you can:

  • Use fablo rest to enroll/register users, invoke/query chaincodes. Just add "tools": { "fabloRest": true } to organisation you want to expose and integrated fablo-rest will be started. here you can find sample config in yaml (but the section will be the same for json format as well.)
  • to change the network you must edit your fablo-config.json and then type fablo recreate to change number of peers, orderers, channels, etc. It will be done in non-rest way. (But bare in mind that it will recreate your network and doesn't preserve previous state.)
  1. How can I deploy a gateway client application (or this which use REST) to query the ledger?

You can do it with already mentioned fablo rest. On project's repo you have some guidelines and here you've got some sample code.

If something more is unclear don't hesitate to ask:)

Hejwo avatar Jan 31 '22 16:01 Hejwo

Thank you for your answer. It seems that Fablo supports a lot of operations. The only problem is that in order to add a new channel (where the existing orgs will join) you have to recreate the entire network without keeping the state. This is a problem for my use case scenario.

nkaramolegos avatar Feb 01 '22 09:02 nkaramolegos

yeah, unfortunately we're not supporting this kind of operation in fablo-rest yet. Another tip might be: Starting your initial network with fablo and then spinning by yourself mircofab which provides advanced restful api, there's a good chance that it also supports adding new channel.
But we haven't investigated this integration.

Hejwo avatar Feb 01 '22 10:02 Hejwo