{"id":13800483,"url":"https://github.com/watson-developer-cloud/discovery-nodejs","last_synced_at":"2026-01-14T18:54:36.281Z","repository":{"id":56142388,"uuid":"80665747","full_name":"watson-developer-cloud/discovery-nodejs","owner":"watson-developer-cloud","description":"This is a deprecated Watson Discovery Service Demo. A link to the newly supported demo is below","archived":true,"fork":false,"pushed_at":"2020-11-24T15:54:00.000Z","size":5240,"stargazers_count":77,"open_issues_count":0,"forks_count":137,"subscribers_count":31,"default_branch":"master","last_synced_at":"2025-10-22T10:47:13.711Z","etag":null,"topics":["deprecated-repo"],"latest_commit_sha":null,"homepage":"https://www.ibm.com/demos/live/watson-discovery/self-service","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/watson-developer-cloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-01T21:24:14.000Z","updated_at":"2025-07-17T15:42:10.000Z","dependencies_parsed_at":"2022-08-15T13:31:01.664Z","dependency_job_id":null,"html_url":"https://github.com/watson-developer-cloud/discovery-nodejs","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/watson-developer-cloud/discovery-nodejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watson-developer-cloud%2Fdiscovery-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watson-developer-cloud%2Fdiscovery-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watson-developer-cloud%2Fdiscovery-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watson-developer-cloud%2Fdiscovery-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/watson-developer-cloud","download_url":"https://codeload.github.com/watson-developer-cloud/discovery-nodejs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watson-developer-cloud%2Fdiscovery-nodejs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28430961,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:38:47.836Z","status":"ssl_error","status_checked_at":"2026-01-14T16:34:59.695Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deprecated-repo"],"created_at":"2024-08-04T00:01:13.019Z","updated_at":"2026-01-14T18:54:36.259Z","avatar_url":"https://github.com/watson-developer-cloud.png","language":"JavaScript","readme":"\u003ch1 style=\"font-weight: bold;\"\u003e# DEPRECATED\u003c/h1\u003e\n\u003ch2\u003e \n  This demo and repo is no longer supported. You can find the newly supported Discovery demo\n  \u003ca href=\"https://www.ibm.com/demos/live/watson-discovery/self-service\"\u003e\n    here.\n  \u003c/a\u003e\n\u003c/h2\u003e\n\u003ch1 align=\"center\" style=\"border-bottom: none;\"\u003e🔎 Discovery Demo \u003c/h1\u003e\n\u003ch3 align=\"center\"\u003eUse the IBM Watson Discovery service to add a cognitive search and content analytics engine to your applications to identify patterns, trends and actionable insights that drive better decision-making.\u003c/h3\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://travis-ci.org/watson-developer-cloud/discovery-nodejs\"\u003e\n    \u003cimg alt=\"Travis\" src=\"https://travis-ci.org/watson-developer-cloud/discovery-nodejs.svg?branch=master\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"#badge\"\u003e\n    \u003cimg alt=\"semantic-release\" src=\"https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003c/p\u003e\n\n![demo](readme-images/new-demo.gif)\n\nDemo: https://discovery-news-demo.ng.bluemix.net/\n\n## Prerequisites\n\n1. Sign up for an [IBM Cloud account](https://console.bluemix.net/registration/).\n1. Download the [IBM Cloud CLI](https://cloud.ibm.com/docs/cli?topic=cli-getting-started#overview).\n1. Create an instance of the Discovery service and get your credentials:\n    - Go to the [Discovery](https://console.bluemix.net/catalog/services/discovery) page in the IBM Cloud Catalog.\n    - Log in to your IBM Cloud account.\n    - Click **Create**.\n    - Click **Show** to view the service credentials.\n    - Copy the `apikey` value, or copy the `username` and `password` values if your service instance doesn't provide an `apikey`.\n    - Copy the `url` value.\n\n## Configuring the application\n\n1. In the application folder, copy the *.env.example* file and create a file called *.env*\n\n    ```\n    cp .env.example .env\n    ```\n\n2. Open the *.env* file and add the service credentials that you obtained in the previous step.\n\n    Example *.env* file that configures the `apikey` and `url` for a Discovery service instance hosted in the US East region:\n\n    ```\n    DISCOVERY_IAM_APIKEY=X4rbi8vwZmKpXfowaS3GAsA7vdy17Qh7km5D6EzKLHL2\n    DISCOVERY_URL=https://gateway-wdc.watsonplatform.net/discovery/api\n    ```\n\n    - If your service instance uses `username` and `password` credentials, add the `DISCOVERY_USERNAME` and `DISCOVERY_PASSWORD` variables to the *.env* file.\n\n    Example *.env* file that configures the `username`, `password`, and `url` for a Discovery service instance hosted in the Sydney region:\n\n    ```\n    DISCOVERY_USERNAME=522be-7b41-ab44-dec3-g1eab2ha73c6\n    DISCOVERY_PASSWORD=A4Z5BdGENrwu8\n    DISCOVERY_URL=https://gateway-syd.watsonplatform.net/discovery/api\n    ```\n\n\u003c!-- **ADD ANY APP-SPECIFIC CONFIGURATION INSTRUCTIONS HERE** --\u003e\n\n## Running locally\n\n1. Install the dependencies\n\n    ```\n    npm install\n    ```\n\n1. Build the application\n\n    ```\n    npm run build\n    ```\n\n1. Run the application\n\n    ```\n    npm start\n    ```\n\n1. View the application in a browser at `localhost:3000`\n\n## Deploying to IBM Cloud as a Cloud Foundry Application\n\n1. Build the application\n\n    ```\n    npm run build\n    ```\n\n1. Login to IBM Cloud with the [IBM Cloud CLI](https://cloud.ibm.com/docs/cli?topic=cli-getting-started#overview)\n\n    ```\n    ibmcloud login\n    ```\n\n1. Target a Cloud Foundry organization and space.\n\n    ```\n    ibmcloud target --cf\n    ```\n\n1. Edit the *manifest.yml* file. Change the **name** field to something unique. For example, `- name: my-app-name`.\n1. Deploy the application\n\n    ```\n    ibmcloud app push\n    ```\n\n1. View the application online at the app URL, for example: https://my-app-name.mybluemix.net\n\n\n## Tests\n\n#### Unit tests\nRun unit tests with `npm run test-unit`, then `a` to run all tests. See the output for more info.\n\n#### Integration tests\nFirst you have to make sure your code is built: `npm run build`\n\nThen run integration tests with: `npm run test-integration-runner`\n\n## Directory structure\n\n```none\n.\n├── app.js                      // express routes\n├── config                      // express configuration\n│   ├── error-handler.js\n│   ├── express.js\n│   └── security.js\n├── package.json\n├── public                      // static resources\n├── server.js                   // entry point\n├── test                        // integration tests\n└── src                         // react client\n    ├── __test__                // unit tests\n    └── index.js                // app entry point\n```\n\n## License\n\n  This sample code is licensed under the [MIT License](https://opensource.org/licenses/MIT).\n\n## Contributing\n\n  See [CONTRIBUTING](.github/CONTRIBUTING.md).\n\n## Open Source @ IBM\n  Find more open source projects on the [IBM Github Page](http://ibm.github.io/)\n\n[getting_started]: https://www.ibm.com/watson/developercloud/doc/common/index.html\n[docs]: http://www.ibm.com/watson/developercloud/doc/discovery/index.html\n[sign_up]: https://console.ng.bluemix.net/registration/\n","funding_links":[],"categories":["Data \u0026 AI"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatson-developer-cloud%2Fdiscovery-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwatson-developer-cloud%2Fdiscovery-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatson-developer-cloud%2Fdiscovery-nodejs/lists"}