{"id":15595555,"url":"https://github.com/cdimascio/nationalparks_conversation","last_synced_at":"2025-04-28T10:25:06.676Z","repository":{"id":83296714,"uuid":"66205051","full_name":"cdimascio/nationalparks_conversation","owner":"cdimascio","description":"Chatbots and Watson: Let’s talk about national parks: course source code","archived":false,"fork":false,"pushed_at":"2018-12-07T03:31:29.000Z","size":1953,"stargazers_count":46,"open_issues_count":3,"forks_count":71,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-28T10:24:53.610Z","etag":null,"topics":["bluemix","tutorial","watson","watson-conversation","watson-conversation-service"],"latest_commit_sha":null,"homepage":"https://developer.ibm.com/courses/all-courses/chatbots-and-watson-lets-talk-about-national-parks/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cdimascio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-08-21T15:11:50.000Z","updated_at":"2023-05-10T14:13:06.000Z","dependencies_parsed_at":"2023-03-12T17:53:58.497Z","dependency_job_id":null,"html_url":"https://github.com/cdimascio/nationalparks_conversation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdimascio%2Fnationalparks_conversation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdimascio%2Fnationalparks_conversation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdimascio%2Fnationalparks_conversation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdimascio%2Fnationalparks_conversation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdimascio","download_url":"https://codeload.github.com/cdimascio/nationalparks_conversation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251293316,"owners_count":21566077,"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":["bluemix","tutorial","watson","watson-conversation","watson-conversation-service"],"created_at":"2024-10-03T01:00:39.506Z","updated_at":"2025-04-28T10:25:06.656Z","avatar_url":"https://github.com/cdimascio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nationalparks-conversation\n \n**Chatbots and Watson**: Let’s talk about national parks: course source code\n\nThe chatbot uses [Watson Conversation](https://console.bluemix.net/catalog/services/conversation?env_id=ibm:yp:us-south\u0026taxonomyNavigation=services), [Weather Company Data](https://console.bluemix.net/catalog/services/weather-company-data?env_id=ibm:yp:us-south\u0026taxonomyNavigation=services), [React](https://facebook.github.io/react/), [Nodejs](https://nodejs.org/en/), and [IBM Cloud](https://www.bluemix.net) to create a chatbot about National Parks. \n\nThe complete course content and videos lives [here](https://developer.ibm.com/courses/all-courses/chatbots-and-watson-lets-talk-about-national-parks/)\n\nTry the live demo [here](https://nationalparks.mybluemix.net/)\n\nAsk:\n- which parks can you talk about\n- Tell me about zion\n- What animals live there\n- What's the weather like\n- What animals live at Denali National Park\n- What's the weather like there\n\n## A glimpse\n\n![](https://github.com/cdimascio/nationalparks_conversation/raw/master/.assets/sshot.png)\n\n## Prequisities\n\n1. Clone this repo\n2. Create an IBM Cloud account\n\n## Setup\n\n### Conversation\n\n- Provision an instance of [Watson Conversation](https://console.bluemix.net/catalog/services/conversation?env_id=ibm:yp:us-south\u0026taxonomyNavigation=services) on IBM Cloud\n- Create a new conversation workspace by importing `./resources/conversation_workspace.json` into your Watson Conversation workspaces,\n- Install client and server dependencies\n- Create `.env` files in the project root with the following contents\n\n```\nAPP_ID=parks-conversation\nPORT=3004\nLOG_LEVEL=debug\nSESSION_SECRET=test\n\nWATSON_CONVERSATION_API_ROOT=https://gateway.watsonplatform.net/conversation/api\nWATSON_CONVERSATION_VERSION=v1\nWATSON_CONVERSATION_VERSION_DATE=2016-07-11\nWATSON_CONVERSATION_USERNAME=\u003cUSERNAME\u003e\nWATSON_CONVERSATION_PASSWORD=\u003cPASSWORD\u003e\nWATSON_CONVERSATION_WORKSPACE_ID=\u003cWORKSPACE\u003e\n```\n\n### Server\n\nInstall server dependencies\n\n```shell\nnpm install\n```\n\n### Client\n\nInstall client dependencies\n\n```shell\ncd client\nnpm install\n```\n\n## Build / Run (Development)\n- Start the server `npm start`\n- Start the client `cd client \u0026\u0026 npm start`\n- Navigate to http://localhost:3000\n\n## Build / Run (Production)\n\n```shell\ncd client\nnpm run build\ncd ..\nnpm start\n```\nNavigate to [http://localhost:3000](http://localhost:3000)\n\n## Deploy to IBM Cloud\n\n#### Prequisites: \n- Install CloudFoundry Tools\n\n#### Deploy\nFollow the first 3 steps in the \"Build / Run (Production)\" section above, then run.\n\n```shell\ncf push USER_ID-nationalparks\n```\nNavigate to [https://USER_ID-nationalparks.mybluemix.net](https://USER_ID-nationalparks.mybluemix.net)\n\n\n\n## FAQ\n\n**Q:** In Lab 5: \"[Programmatically interact with Watson Conversation](https://developer.ibm.com/courses/all/chatbots-watson-lets-talk-national-parks/?course=begin#3990)\", I get an authentication error. What do I do?\n\n**A:**\nThis occurs on Windows. Windows sets the `USERNAME` variable to the logged in OS user. Ultimately, it ends up overriding the value for `USERNAME` specified in `.env`. The problem can be solved in two ways:\n\n- on step 3., hard code the `USERNAME` and `PASSWORD`\n  e.g.\n   \n  ```javascript\n  const conversation = new ConversationV1({\n\t\tusername: 'your-username',\n\t\tpassword: 'your-password',\n\t\tversion_date: ConversationV1.VERSION_DATE_2016_09_20\n\t});\n  ```\n **or**\n- Rename the `USERNAME` env \n\t- \tEdit `.env`, change `USERNAME` to `NP_USERNAME`\n\t- \tin step 3., change `USERNAME` to `NP_USERNAME`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdimascio%2Fnationalparks_conversation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdimascio%2Fnationalparks_conversation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdimascio%2Fnationalparks_conversation/lists"}