Start a new topic
Answered

Kinvey Flex SDK

Need information on how to make use of Kinvey Flex SDK to remove the server less architecture. Any help is appreciated. 


Best Answer
Suraj,

No. We don't need to give any special access in the console in order to config the Kinvey-cli locally.

I reviewed the logs and found that you have 2 separate apps on 'fi-us1' and 'fi-us2'. Please make sure you are using the correct host where Flex service is created. Have you tried the following?


If the above suggestion doesn't work, then I will get inputs from engineering on this issue.

Thanks,
Pranav
Kinvey

Suraj,


Regarding your issue about "Server listening to 10001 - nothing happens for GET/POST requests", have you added and installed 'request' module to package.json? I have tested the code mentioned in the Flex docs and it is working fine.



Now, regarding your question about creating a service object for a Flex service in service catalog, have you tried "kinvey deploy" command? Here is the link http://devcenter.kinvey.com/ios/guides/flexservice-runtime#DeployingFlexServices


This command deploys preconfigured NodeJS services to the FlexService Runtime and starts them. Once you do this successfully, you will be able to set a service object in service catalog.



Let me know if you come across any issues again.


Thanks,

Pranav

Kinvey

Hi Pranav,


Thank you so much for this particular answer. This saved my day.

I was initially using "kinvey config --host https://fi-us1-console.kinvey.com" and not "kinvey config --host https://fi-us1-manage.kinvey.com". I rectified this one. Will let you know if I face any other issues.


Thanks

Suraj

Hi Pranav,


Thanks for the prompt reply. But I have still got doubt on how to link my Node JS service code to the service Object in Kinvey FSR. The documentation does not provide information on that. What I understood so far is,


1. We need to create a service in Node JS which will be hosted in Kinvey as a collection having service type as Flex Internal Service,

2. We need to create the service object in the service linked with the Node JS service.

3. Through Kinvey CLI commands, we need to activate the Flex service, this would be deploying the code in Kinveys server.

4. Using kinvey console, we can access the code's output using GET or POST request.


I need to know how to link the service file with the Kinvey Flex service catalog. 


Thanks

Suraj

Pranav,


I tried logging the details, I do not get any errors. It always gets deployed as an FSR to a collection, but I am not able to see any output there in the collection. By output, I mean any service object getting created.


I am not into any proxies too. Is there any specific solution for this? If I use a mac, I am able to see service objects successfully using the same exact commands.


Thanks

Suraj

Login or Signup to post a comment