Hi Dinuka, We have not successfully used Thrift generated JS previously (its possible but do not have that experience within Airavata). Django portal uses the python generated code and exposes them as REST API’s using DRF (https://www.django-rest-framework.org/ <https://www.django-rest-framework.org/>). The Vue.js UI components communicate to these REST API’s. I wonder if you can have electronJS talk to the same API’s instead of directly to Airavata API.
Also, we would like to move from Thrift to Protobuf and gRPC. I wonder if REST support can be more seamless once the migration is done. Suresh > On Apr 5, 2020, at 4:17 PM, Dinuka Desilva <[email protected]> wrote: > > Hi, > > I'm trying to generate the es6 client stub for airavata api using the > following script. > > thrift -r --gen js:es6 > ../../airavata/thrift-interface-descriptions/airavata-apis/airavata_api.thrift > > > But, I'm not getting it correctly I guess. I'm getting a list of files in a > folder called gen-js. Instead what I need is a structured code as there in > the airavata-django-portal. > > I'm also not sure whether what's on the portal is a generated code. Please > advise. > > <Screenshot 2020-04-06 at 1.42.41 AM.png> > > Can you help me? > > Regards, > Dinuka
