{"id":19403128,"url":"https://github.com/watson-developer-cloud/customer-engagement-nodejs","last_synced_at":"2025-06-27T01:32:16.751Z","repository":{"id":20013010,"uuid":"88198708","full_name":"watson-developer-cloud/customer-engagement-nodejs","owner":"watson-developer-cloud","description":"Customer Engagement","archived":false,"fork":false,"pushed_at":"2022-12-30T19:06:11.000Z","size":1465,"stargazers_count":10,"open_issues_count":18,"forks_count":23,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-05-19T05:38:47.588Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","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":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-13T19:21:24.000Z","updated_at":"2022-05-19T17:55:17.000Z","dependencies_parsed_at":"2023-01-13T20:43:33.942Z","dependency_job_id":null,"html_url":"https://github.com/watson-developer-cloud/customer-engagement-nodejs","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/watson-developer-cloud/customer-engagement-nodejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watson-developer-cloud%2Fcustomer-engagement-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watson-developer-cloud%2Fcustomer-engagement-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watson-developer-cloud%2Fcustomer-engagement-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watson-developer-cloud%2Fcustomer-engagement-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/customer-engagement-nodejs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watson-developer-cloud%2Fcustomer-engagement-nodejs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260713062,"owners_count":23050805,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-10T11:27:20.033Z","updated_at":"2025-06-27T01:32:16.726Z","avatar_url":"https://github.com/watson-developer-cloud.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\" style=\"border-bottom: none;\"\u003e🚀 Customer Engagement Demo\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://travis-ci.org/watson-developer-cloud/customer-engagement-nodejs\"\u003e\n    \u003cimg alt=\"Travis\" src=\"https://travis-ci.org/watson-developer-cloud/customer-engagement-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## Prerequisites\n\n1. Sign up for an [IBM Cloud account](https://console.bluemix.net/registration/).\n1. Download the [IBM Cloud CLI](https://console.bluemix.net/docs/cli/index.html#overview).\n1. Create an instance of the Tone Analyzer service and get your credentials:\n   - Go to the [Tone Analyzer](https://console.bluemix.net/catalog/services/tone-analyzer) 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.\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 Tone Analyzer service instance hosted in the US East region:\n\n   ```\n   TONE_ANALYZER_IAM_APIKEY=X4rbi8vwZmKpXfowaS3GAsA7vdy17Qh7km5D6EzKLHL2\n   TONE_ANALYZER_URL=https://gateway.watsonplatform.net/tone-analyzer/api\n   ```\n\n## Running locally\n\n1. Install the dependencies\n\n   ```\n   npm install\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. Login to IBM Cloud with the [IBM Cloud CLI](https://console.bluemix.net/docs/cli/index.html#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.  \n   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.  \n   For example: https://my-app-name.mybluemix.net\n\n---\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├── manifest.yml\n├── package.json\n├── public                      // static resources\n├── server.js                   // entry point\n├── test                        // unit tests\n└── views                       // react components\n```\n\n## License\n\nThis sample code is licensed under Apache 2.0.\n\n## Contributing\n\nSee [CONTRIBUTING](.github/CONTRIBUTING.md).\n\n## Open Source @ IBM\n\nFind more open source projects on the [IBM Github Page](http://ibm.github.io/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatson-developer-cloud%2Fcustomer-engagement-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwatson-developer-cloud%2Fcustomer-engagement-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatson-developer-cloud%2Fcustomer-engagement-nodejs/lists"}