verifiablesoftware / vsw

Core project of VerifiableSoftware
Apache License 2.0
1 stars 0 forks source link

vsw setup cli implement #61

Closed felixchen1023 closed 3 years ago

felixchen1023 commented 3 years ago

$vsw setup

In the first step, the user installs all software needed to run vsw (which includes aca-py implicitly). Ideally, users don’t need to know aca-py, but if too complicated, it’s ok to have the user explicitly install aca-py as well.

In the second step, the behavior is described in the design doc and is similar to what Juha described above. If aca-py isn’t running, first start it with properly initial config parameters, then connect with it through the admin api, complete the rest of initialization, issue a “list DID” command to test the interface, print out DID list, e.g.

When you start aca-py, please use config file rather than inline parameters, so users can see the settings a lot easier and make changes. Run both as daemons. We will use “vsw exit” to kill both.

Another step that “vsw setup” should do is to use the admin API to trigger the agent to make a pair-wise connection to the vsw-repo agent and report status.

felixchen1023 commented 3 years ago

Most of them are all done except using the admin API to trigger the repo agent, since we have not been working vsw-repo.

TonWolting commented 3 years ago

@felixchen1023 For this ticket please use vsw setup -schemaID. For further we need to make it more user friendly and use naming for schemaID. Separate ticket to created for that.

felixchen1023 commented 3 years ago

--schema function has been done now. create/initial connection to repo has been moved to "vsw init" since this needs to wait until vsw agent starting done.