eGlobeBiz eGlobeBiz - 4 months ago 76
Node.js Question

How to bind my javascript web app on IBM Bluemix with any Watson API service created by me in Manifest.yml?

How to bind my javascript web app on IBM Bluemix with any Watson API service created by me in Manifest.yml?

We followed the following tutorials to make tthis Watson Car Conversation - Simple app demo to work on my local computer and Bluemix hosting.
https://github.com/eGlobeBizCom/conversation-simple
This Q is also posted at the comments section of this video
https://www.youtube.com/watch?v=9M86BfL9KX0

*This demo app can work on my local computer;
*But deploying the above app to Bluemix, not successful.

The problem: After type "cf push" on Gitbash, the results: Most steps are deployed, this step gives me the failed message:



Failed. Could not find service conversation - free to bind to WatsonCarApp (This is the app name in the manifest.yml, I gave this app name)



Many searches on the web have no helpful info. IBM Bluemix hosting and Watson API Service teams really need to improve tutorial and tech support. Any suggestions will be appreciated.

Answer

Your manifest.yml file expects a Watson Conversation service named conversation-free, so before you push your application you need to run the following command to create this service:

$ cf create-service conversation free conversation-free

after that you can run cf push to deploy your application.

These should fix the error you are seeing about not finding the conversation-free service.

If you created your Watson conversation service via UI, please use a manifest.yml file similar to below to deploy your application:

applications:
- name: WatsonCarApp
  services:
  - Conversation-4i
  command: npm start
  path: .
  instances: 1
  memory: 512MB

PS: manifest.yml assumes your application name is WatsonCarApp and your service name is Conversation-4i