Learn and Be Curious

chatbot

Cloud/Bluemix2017. 4. 19. 10:56

https://developer.ibm.com/kr/cloud/bluemix/watsonservice/2017/01/13/watsonchatbot-1-watson-conversation/



https://developer.ibm.com/kr/cloud/bluemix/watsonservice/2017/01/20/watsonchatbot-2-watson-conversation/



SDS@SDS-PC c:\dev
$ git checkout tutorial2
fatal: Not a git repository (or any of the parent directories): .git

SDS@SDS-PC c:\dev
$ cd chatbot-tutorial

SDS@SDS-PC c:\dev\chatbot-tutorial
$ git checkout tutorial2
Switched to a new branch 'tutorial2'
Branch tutorial2 set up to track remote branch tutorial2 from origin.

SDS@SDS-PC c:\dev\chatbot-tutorial
$
SDS@SDS-PC c:\dev\chatbot-tutorial
$
SDS@SDS-PC c:\dev\chatbot-tutorial
$ dir
 C 드라이브의 볼륨에는 이름이 없습니다.
 볼륨 일련 번호: 0660-5B61

 c:\dev\chatbot-tutorial 디렉터리

2017-04-19  오전 11:45    <DIR>          .
2017-04-19  오전 11:45    <DIR>          ..
2017-04-19  오전 11:44                69 .cfignore
2017-04-19  오전 11:50               403 .env.example
2017-04-19  오전 11:44                66 .gitignore
2017-04-19  오전 11:45    <DIR>          api
2017-04-19  오전 11:44             1,001 app.js
2017-04-19  오전 11:44               212 config.json
2017-04-19  오전 11:44            10,349 LICENSE
2017-04-19  오전 11:44               400 manifest.yml
2017-04-19  오전 11:45             1,336 package.json
2017-04-19  오전 11:44    <DIR>          public
2017-04-19  오전 11:44                18 README.md
2017-04-19  오전 11:44               918 server.js
2017-04-19  오전 11:45    <DIR>          solution
2017-04-19  오전 11:45    <DIR>          training
2017-04-19  오전 11:44    <DIR>          util
              10개 파일              14,772 바이트
               7개 디렉터리  24,520,294,400 바이트 남음

SDS@SDS-PC c:\dev\chatbot-tutorial
$ type package.json
{
  "name": "conversation-simple",
  "description": "A simple Node.js based web app which shows how to use the Conv
  "version": "0.1.1",
  "main": "server.js",
  "scripts": {
    "start": "node server.js",
    "test-integration": "casperjs test ./test/integration/test.*.js",
    "test-integration-runner": "NODE_ENV=test node casper-runner.js",
    "test": "npm run lint && npm run test-unit && npm run test-integration-runne
    "test-unit": "istanbul cover ./node_modules/mocha/bin/_mocha test/unit",
    "lint": "eslint .",
    "autofix": "eslint --fix .",
    "codecov": "npm run test && (codecov || true)"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/watson-developer-cloud/conversation-simple.git"
  },
  "license": "Apache-2.0",
  "dependencies": {
    "body-parser": "^1.15.2",
    "cfenv": "*",
    "cloudant": "1.6.x",
    "dotenv": "^2.0.0",
    "express": "^4.14.0",
    "moment": "^2.17.1"
  },
  "devDependencies": {
    "babel-eslint": "^6.0.4",
    "casperjs": "^1.1.3",
    "codecov": "^1.0.1",
    "eslint": "^2.8.0",
    "istanbul": "^0.4.2",
    "mocha": "^2.4.5",
    "phantomjs-prebuilt": "^2.1.13",
    "supertest": "^1.2.0"
  },
  "engine": {
    "node": ">= 6.9.x",
    "npm": "> 3.10.x"
  }
}

SDS@SDS-PC c:\dev\chatbot-tutorial
$ npm install
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail oo find it in the tree.
npm WARN deprecated to-iso-string@0.0.2: to-iso-string has been deprecated, use npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install thnpm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher

> execSync@1.0.2 install c:\dev\chatbot-tutorial\node_modules\execSync
> node install.js

[execsync v1.0.2] Attempting to compile native extensions.
{ Error: spawn node-gyp ENOENT
    at exports._errnoException (util.js:1022:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
    at onErrorNT (internal/child_process.js:359:16)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)
    at Module.runMain (module.js:606:11)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:509:3
  code: 'ENOENT',
  errno: 'ENOENT',
  syscall: 'spawn node-gyp',
  path: 'node-gyp',
  spawnargs: [ 'rebuild' ] }
[execSync v1.0.2]
    Native code compile failed!!
    Will try to use win32 extension.

> phantomjs-prebuilt@2.1.14 install c:\dev\chatbot-tutorial\node_modules\phantom> node install.js

PhantomJS not found on PATH
Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomSaving to C:\Users\SDS\AppData\Local\Temp\phantomjs\phantomjs-2.1.1-windows.zip Receiving...
  [=======================================-] 98%
Received 17767K total.
Extracting zip contents
Removing c:\dev\chatbot-tutorial\node_modules\phantomjs-prebuilt\lib\phantom
Copying extracted folder C:\Users\SDS\AppData\Local\Temp\phantomjs\phantomjs-2.1js-prebuilt\lib\phantom
Writing location.js file
Done. Phantomjs binary available at c:\dev\chatbot-tutorial\node_modules\phantomconversation-simple@0.1.1 c:\dev\chatbot-tutorial
+-- babel-eslint@6.1.2
| +-- babel-traverse@6.24.1
| | +-- babel-code-frame@6.22.0
| | | `-- js-tokens@3.0.1
| | +-- babel-messages@6.23.0
| | +-- babel-runtime@6.23.0
| | | +-- core-js@2.4.1
| | | `-- regenerator-runtime@0.10.3
| | `-- invariant@2.2.2
| |   `-- loose-envify@1.3.1
| +-- babel-types@6.24.1
| | `-- to-fast-properties@1.0.2
| +-- babylon@6.16.1
| +-- lodash.assign@4.2.0
| `-- lodash.pickby@4.6.0
+-- body-parser@1.17.1
| +-- bytes@2.4.0
| +-- content-type@1.0.2
| +-- debug@2.6.1
| | `-- ms@0.7.2
| +-- depd@1.1.0
| +-- http-errors@1.6.1
| | `-- inherits@2.0.3
| +-- iconv-lite@0.4.15
| +-- on-finished@2.3.0
| | `-- ee-first@1.1.1
| +-- qs@6.4.0
| +-- raw-body@2.2.0
| | `-- unpipe@1.0.0
| `-- type-is@1.6.15
|   +-- media-typer@0.3.0
|   `-- mime-types@2.1.15
|     `-- mime-db@1.27.0
+-- casperjs@1.1.3
+-- cfenv@1.0.4
| +-- js-yaml@3.7.0
| | `-- argparse@1.0.9
| |   `-- sprintf-js@1.0.3
| +-- ports@1.1.0
| `-- underscore@1.8.3
+-- cloudant@1.6.2
| +-- async@2.1.2
| +-- cloudant-nano@6.4.1
| | +-- errs@0.3.2
| | `-- follow@0.12.1
| |   +-- browser-request@0.3.3
| |   `-- request@2.55.0
| |     +-- aws-sign2@0.5.0
| |     +-- bl@0.9.5
| |     | `-- readable-stream@1.0.34
| |     +-- caseless@0.9.0
| |     +-- combined-stream@0.0.7
| |     | `-- delayed-stream@0.0.5
| |     +-- form-data@0.2.0
| |     | +-- async@0.9.2
| |     | `-- mime-types@2.0.14
| |     |   `-- mime-db@1.12.0
| |     +-- har-validator@1.8.0
| |     | `-- bluebird@2.11.0
| |     +-- hawk@2.3.1
| |     +-- http-signature@0.10.1
| |     | +-- asn1@0.1.11
| |     | +-- assert-plus@0.1.5
| |     | `-- ctype@0.5.3
| |     +-- mime-types@2.0.14
| |     | `-- mime-db@1.12.0
| |     +-- oauth-sign@0.6.0
| |     `-- qs@2.4.2
| +-- debug@2.2.0
| | `-- ms@0.7.1
| `-- request@2.76.0
|   +-- aws-sign2@0.6.0
|   +-- aws4@1.6.0
|   +-- caseless@0.11.0
|   +-- combined-stream@1.0.5
|   | `-- delayed-stream@1.0.0
|   +-- extend@3.0.0
|   +-- forever-agent@0.6.1
|   +-- form-data@2.1.4
|   | `-- asynckit@0.4.0
|   +-- har-validator@2.0.6
|   | `-- commander@2.9.0
|   |   `-- graceful-readlink@1.0.1
|   +-- hawk@3.1.3
|   | +-- boom@2.10.1
|   | +-- cryptiles@2.0.5
|   | +-- hoek@2.16.3
|   | `-- sntp@1.0.9
|   +-- http-signature@1.1.1
|   | +-- assert-plus@0.2.0
|   | +-- jsprim@1.4.0
|   | | +-- assert-plus@1.0.0
|   | | +-- extsprintf@1.0.2
|   | | +-- json-schema@0.2.3
|   | | `-- verror@1.3.6
|   | `-- sshpk@1.13.0
|   |   +-- asn1@0.2.3
|   |   +-- assert-plus@1.0.0
|   |   +-- bcrypt-pbkdf@1.0.1
|   |   +-- dashdash@1.14.1
|   |   | `-- assert-plus@1.0.0
|   |   +-- ecc-jsbn@0.1.1
|   |   +-- getpass@0.1.6
|   |   | `-- assert-plus@1.0.0
|   |   +-- jodid25519@1.0.2
|   |   +-- jsbn@0.1.1
|   |   `-- tweetnacl@0.14.5
|   +-- is-typedarray@1.0.0
|   +-- isstream@0.1.2
|   +-- json-stringify-safe@5.0.1
|   +-- node-uuid@1.4.8
|   +-- oauth-sign@0.8.2
|   +-- qs@6.3.2
|   +-- stringstream@0.0.5
|   +-- tough-cookie@2.3.2
|   | `-- punycode@1.4.1
|   `-- tunnel-agent@0.4.3
+-- codecov@1.0.1
| +-- argv@0.0.2
| +-- execSync@1.0.2
| | `-- temp@0.5.1
| |   `-- rimraf@2.1.4
| |     `-- graceful-fs@1.2.3
| `-- urlgrey@0.4.4
+-- dotenv@2.0.0
+-- eslint@2.13.1
| +-- chalk@1.1.3
| | +-- ansi-styles@2.2.1
| | +-- escape-string-regexp@1.0.5
| | +-- has-ansi@2.0.0
| | +-- strip-ansi@3.0.1
| | `-- supports-color@2.0.0
| +-- concat-stream@1.6.0
| | +-- readable-stream@2.2.9
| | | +-- buffer-shims@1.0.0
| | | +-- core-util-is@1.0.2
| | | +-- isarray@1.0.0
| | | +-- process-nextick-args@1.0.7
| | | +-- string_decoder@1.0.0
| | | `-- util-deprecate@1.0.2
| | `-- typedarray@0.0.6
| +-- doctrine@1.5.0
| | `-- isarray@1.0.0
| +-- es6-map@0.1.5
| | +-- d@1.0.0
| | +-- es5-ext@0.10.15
| | +-- es6-iterator@2.0.1
| | +-- es6-set@0.1.5
| | +-- es6-symbol@3.1.1
| | `-- event-emitter@0.3.5
| +-- escope@3.6.0
| | +-- es6-weak-map@2.0.2
| | `-- esrecurse@4.1.0
| |   `-- estraverse@4.1.1
| +-- espree@3.4.1
| | +-- acorn@5.0.3
| | `-- acorn-jsx@3.0.1
| |   `-- acorn@3.3.0
| +-- estraverse@4.2.0
| +-- esutils@2.0.2
| +-- file-entry-cache@1.3.1
| | +-- flat-cache@1.2.2
| | | +-- circular-json@0.3.1
| | | +-- del@2.2.2
| | | | +-- globby@5.0.0
| | | | | +-- array-union@1.0.2
| | | | | | `-- array-uniq@1.0.3
| | | | | `-- arrify@1.0.1
| | | | +-- is-path-cwd@1.0.0
| | | | +-- is-path-in-cwd@1.0.0
| | | | | `-- is-path-inside@1.0.0
| | | | +-- pify@2.3.0
| | | | `-- rimraf@2.6.1
| | | +-- graceful-fs@4.1.11
| | | `-- write@0.2.1
| | `-- object-assign@4.1.1
| +-- glob@7.1.1
| | +-- fs.realpath@1.0.0
| | +-- inflight@1.0.6
| | `-- minimatch@3.0.3
| |   `-- brace-expansion@1.1.7
| |     +-- balanced-match@0.4.2
| |     `-- concat-map@0.0.1
| +-- globals@9.17.0
| +-- ignore@3.2.7
| +-- imurmurhash@0.1.4
| +-- inquirer@0.12.0
| | +-- ansi-escapes@1.4.0
| | +-- ansi-regex@2.1.1
| | +-- cli-cursor@1.0.2
| | | `-- restore-cursor@1.0.1
| | |   +-- exit-hook@1.1.1
| | |   `-- onetime@1.1.0
| | +-- cli-width@2.1.0
| | +-- figures@1.7.0
| | +-- readline2@1.0.1
| | | +-- code-point-at@1.1.0
| | | +-- is-fullwidth-code-point@1.0.0
| | | | `-- number-is-nan@1.0.1
| | | `-- mute-stream@0.0.5
| | +-- run-async@0.1.0
| | +-- rx-lite@3.1.2
| | +-- string-width@1.0.2
| | `-- through@2.3.8
| +-- is-my-json-valid@2.16.0
| | +-- generate-function@2.0.0
| | +-- generate-object-property@1.2.0
| | | `-- is-property@1.0.2
| | +-- jsonpointer@4.0.1
| | `-- xtend@4.0.1
| +-- is-resolvable@1.0.0
| | `-- tryit@1.0.3
| +-- json-stable-stringify@1.0.1
| | `-- jsonify@0.0.0
| +-- levn@0.3.0
| | +-- prelude-ls@1.1.2
| | `-- type-check@0.3.2
| +-- lodash@4.17.4
| +-- mkdirp@0.5.1
| | `-- minimist@0.0.8
| +-- optionator@0.8.2
| | +-- deep-is@0.1.3
| | `-- fast-levenshtein@2.0.6
| +-- path-is-absolute@1.0.1
| +-- path-is-inside@1.0.2
| +-- pluralize@1.2.1
| +-- progress@1.1.8
| +-- require-uncached@1.0.3
| | +-- caller-path@0.1.0
| | | `-- callsites@0.2.0
| | `-- resolve-from@1.0.1
| +-- shelljs@0.6.1
| +-- strip-json-comments@1.0.4
| +-- table@3.8.3
| | +-- ajv@4.11.7
| | | `-- co@4.6.0
| | +-- ajv-keywords@1.5.1
| | +-- slice-ansi@0.0.4
| | `-- string-width@2.0.0
| |   `-- is-fullwidth-code-point@2.0.0
| +-- text-table@0.2.0
| `-- user-home@2.0.0
|   `-- os-homedir@1.0.2
+-- express@4.15.2
| +-- accepts@1.3.3
| | `-- negotiator@0.6.1
| +-- array-flatten@1.1.1
| +-- content-disposition@0.5.2
| +-- cookie@0.3.1
| +-- cookie-signature@1.0.6
| +-- encodeurl@1.0.1
| +-- escape-html@1.0.3
| +-- etag@1.8.0
| +-- finalhandler@1.0.1
| | `-- debug@2.6.3
| +-- fresh@0.5.0
| +-- merge-descriptors@1.0.1
| +-- methods@1.1.2
| +-- parseurl@1.3.1
| +-- path-to-regexp@0.1.7
| +-- proxy-addr@1.1.4
| | +-- forwarded@0.1.0
| | `-- ipaddr.js@1.3.0
| +-- range-parser@1.2.0
| +-- send@0.15.1
| | +-- destroy@1.0.4
| | `-- mime@1.3.4
| +-- serve-static@1.12.1
| +-- setprototypeof@1.0.3
| +-- statuses@1.3.1
| +-- utils-merge@1.0.0
| `-- vary@1.1.1
+-- istanbul@0.4.5
| +-- abbrev@1.0.9
| +-- async@1.5.2
| +-- escodegen@1.8.1
| | +-- estraverse@1.9.3
| | `-- source-map@0.2.0
| |   `-- amdefine@1.0.1
| +-- esprima@2.7.3
| +-- glob@5.0.15
| +-- handlebars@4.0.6
| | +-- async@1.5.2
| | +-- optimist@0.6.1
| | | `-- wordwrap@0.0.3
| | +-- source-map@0.4.4
| | `-- uglify-js@2.8.22
| |   +-- source-map@0.5.6
| |   +-- uglify-to-browserify@1.0.2
| |   `-- yargs@3.10.0
| |     +-- camelcase@1.2.1
| |     +-- cliui@2.1.0
| |     | +-- center-align@0.1.3
| |     | | +-- align-text@0.1.4
| |     | | | +-- kind-of@3.1.0
| |     | | | | `-- is-buffer@1.1.5
| |     | | | +-- longest@1.0.1
| |     | | | `-- repeat-string@1.6.1
| |     | | `-- lazy-cache@1.0.4
| |     | +-- right-align@0.1.3
| |     | `-- wordwrap@0.0.2
| |     +-- decamelize@1.2.0
| |     `-- window-size@0.1.0
| +-- nopt@3.0.6
| +-- once@1.4.0
| | `-- wrappy@1.0.2
| +-- resolve@1.1.7
| +-- supports-color@3.2.3
| | `-- has-flag@1.0.0
| +-- which@1.2.14
| | `-- isexe@2.0.0
| `-- wordwrap@1.0.0
+-- mocha@2.5.3
| +-- commander@2.3.0
| +-- debug@2.2.0
| | `-- ms@0.7.1
| +-- diff@1.4.0
| +-- escape-string-regexp@1.0.2
| +-- glob@3.2.11
| | `-- minimatch@0.3.0
| |   +-- lru-cache@2.7.3
| |   `-- sigmund@1.0.1
| +-- growl@1.9.2
| +-- jade@0.26.3
| | +-- commander@0.6.1
| | `-- mkdirp@0.3.0
| +-- supports-color@1.2.0
| `-- to-iso-string@0.0.2
+-- moment@2.18.1
+-- phantomjs-prebuilt@2.1.14
| +-- es6-promise@4.0.5
| +-- extract-zip@1.5.0
| | +-- concat-stream@1.5.0
| | | `-- readable-stream@2.0.6
| | |   `-- isarray@1.0.0
| | +-- debug@0.7.4
| | +-- mkdirp@0.5.0
| | `-- yauzl@2.4.1
| |   `-- fd-slicer@1.0.1
| |     `-- pend@1.2.0
| +-- fs-extra@1.0.0
| | +-- graceful-fs@4.1.11
| | +-- jsonfile@2.4.0
| | | `-- graceful-fs@4.1.11
| | `-- klaw@1.3.1
| |   `-- graceful-fs@4.1.11
| +-- hasha@2.2.0
| | +-- is-stream@1.1.0
| | `-- pinkie-promise@2.0.1
| |   `-- pinkie@2.0.4
| +-- kew@0.7.0
| +-- request@2.79.0
| | +-- aws-sign2@0.6.0
| | +-- caseless@0.11.0
| | +-- combined-stream@1.0.5
| | | `-- delayed-stream@1.0.0
| | +-- form-data@2.1.4
| | +-- har-validator@2.0.6
| | +-- hawk@3.1.3
| | +-- http-signature@1.1.1
| | | `-- assert-plus@0.2.0
| | +-- oauth-sign@0.8.2
| | +-- qs@6.3.2
| | `-- uuid@3.0.1
| `-- request-progress@2.0.1
|   `-- throttleit@1.0.0
`-- supertest@1.2.0
  `-- superagent@1.8.5
    +-- component-emitter@1.2.1
    +-- cookiejar@2.0.6
    +-- form-data@1.0.0-rc3
    | +-- async@1.5.2
    | `-- combined-stream@1.0.5
    |   `-- delayed-stream@1.0.0
    +-- formidable@1.0.17
    +-- qs@2.3.3
    +-- readable-stream@1.0.27-1
    | +-- isarray@0.0.1
    | `-- string_decoder@0.10.31
    `-- reduce-component@1.0.1


SDS@SDS-PC c:\dev\chatbot-tutorial
$
SDS@SDS-PC c:\dev\chatbot-tutorial
$
SDS@SDS-PC c:\dev\chatbot-tutorial
$ npm install watson-developer-cloud --save

> websocket@1.0.24 install c:\dev\chatbot-tutorial\node_modules\websocket
> (node-gyp rebuild 2> builderror.log) || (exit 0)


SDS@SDS-PC c:\dev\chatbot-tutorial\node_modules\websocket
$ if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modulesBuilding the projects in this solution one at a time. To enable parallel build, MSBUILD : error MSB3428: Visual C++ 구성 요소 "VCBuild.exe"을(를) 로드할 수 없습
거나, 3) 해당 구성 요소가 다른 위치에 설치되어 있는 경
우에는 그 위치를 시스템 경로에 추가하십시오.  [c:\dev\chatbot-tutorial\node_modu
MSBUILD : error MSB3428: Visual C++ 구성 요소 "VCBuild.exe"을(를) 로드할 수 없습
거나, 3) 해당 구성 요소가 다른 위치에 설치되어 있는 경
우에는 그 위치를 시스템 경로에 추가하십시오.  [c:\dev\chatbot-tutorial\node_modu
conversation-simple@0.1.1 c:\dev\chatbot-tutorial
`-- watson-developer-cloud@2.29.0
  +-- buffer-from@0.1.1
  | `-- is-array-buffer-x@1.2.1
  |   +-- has-to-string-tag-x@1.2.0
  |   | `-- has-symbol-support-x@1.2.0
  |   +-- is-object-like-x@1.2.0
  |   | +-- is-function-x@1.2.0
  |   | `-- is-primitive@2.0.0
  |   `-- to-string-tag-x@1.2.0
  |     +-- lodash.isnull@3.0.0
  |     `-- validate.io-undefined@1.0.3
  +-- csv-stringify@1.0.4
  | `-- lodash.get@4.4.2
  +-- object.omit@2.0.1
  | +-- for-own@0.1.5
  | | `-- for-in@1.0.2
  | `-- is-extendable@0.1.1
  +-- object.pick@1.2.0
  | `-- isobject@2.1.0
  |   `-- isarray@1.0.0
  +-- request@2.81.0
  | +-- aws-sign2@0.6.0
  | +-- caseless@0.12.0
  | +-- combined-stream@1.0.5
  | | `-- delayed-stream@1.0.0
  | +-- form-data@2.1.4
  | +-- har-validator@4.2.1
  | | `-- har-schema@1.0.5
  | +-- hawk@3.1.3
  | +-- http-signature@1.1.1
  | | `-- assert-plus@0.2.0
  | +-- oauth-sign@0.8.2
  | +-- performance-now@0.2.0
  | +-- safe-buffer@5.0.1
  | +-- tunnel-agent@0.6.0
  | `-- uuid@3.0.1
  +-- solr-client@0.6.0
  | +-- duplexer@0.1.1
  | +-- httperror@0.2.3
  | | `-- hnp@0.0.1
  | +-- json-bigint@0.1.4
  | | `-- bignumber.js@1.1.1
  | +-- JSONStream@1.0.7
  | | `-- jsonparse@1.3.0
  | `-- request@2.63.0
  |   +-- bl@1.0.3
  |   | `-- readable-stream@2.0.6
  |   |   `-- isarray@1.0.0
  |   +-- caseless@0.11.0
  |   +-- combined-stream@1.0.5
  |   | `-- delayed-stream@1.0.0
  |   +-- form-data@1.0.1
  |   +-- hawk@3.1.3
  |   +-- http-signature@0.11.0
  |   +-- oauth-sign@0.8.2
  |   `-- qs@5.1.0
  +-- string@3.3.3
  +-- vcap_services@0.3.4
  `-- websocket@1.0.24
    +-- nan@2.6.2
    +-- typedarray-to-buffer@3.1.2
    `-- yaeti@0.0.6


SDS@SDS-PC c:\dev\chatbot-tutorial
$ npm start

> conversation-simple@0.1.1 start c:\dev\chatbot-tutorial
> node server.js

APIs initialize
c:\dev\chatbot-tutorial\node_modules\watson-developer-cloud\lib\base_service.js:
      throw new Error('Argument error: username and password are required unless
      ^

Error: Argument error: username and password are required unless use_unauthentic
    at ConversationV1.BaseService.initCredentials (c:\dev\chatbot-tutorial\node_
    at ConversationV1.BaseService (c:\dev\chatbot-tutorial\node_modules\watson-d
    at new ConversationV1 (c:\dev\chatbot-tutorial\node_modules\watson-developer
    at Object.<anonymous> (c:\dev\chatbot-tutorial\api\message.js:23:20)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\npm ERR! node v6.9.4
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! conversation-simple@0.1.1 start: `node server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the conversation-simple@0.1.1 start script 'node server.js'. npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the conversation-simple pnpm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node server.js
npm ERR! You can get information on how to open an issue for this project with: npm ERR!     npm bugs conversation-simple
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls conversation-simple
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     c:\dev\chatbot-tutorial\npm-debug.log

SDS@SDS-PC c:\dev\chatbot-tutorial
$
SDS@SDS-PC c:\dev\chatbot-tutorial
$
SDS@SDS-PC c:\dev\chatbot-tutorial
$
SDS@SDS-PC c:\dev\chatbot-tutorial
$ npm install

SDS@SDS-PC c:\dev\chatbot-tutorial
$ dir
 C 드라이브의 볼륨에는 이름이 없습니다.
 볼륨 일련 번호: 0660-5B61

 c:\dev\chatbot-tutorial 디렉터리

2017-04-19  오후 12:00    <DIR>          .
2017-04-19  오후 12:00    <DIR>          ..
2017-04-19  오전 11:44                69 .cfignore
2017-04-19  오전 11:50               403 .env.example
2017-04-19  오전 11:44                66 .gitignore
2017-04-19  오전 11:45    <DIR>          api
2017-04-19  오전 11:44             1,001 app.js
2017-04-19  오전 11:44               212 config.json
2017-04-19  오전 11:44            10,349 LICENSE
2017-04-19  오전 11:44               400 manifest.yml
2017-04-19  오후 12:00    <DIR>          node_modules
2017-04-19  오전 11:55             1,334 package.json
2017-04-19  오전 11:44    <DIR>          public
2017-04-19  오전 11:44                18 README.md
2017-04-19  오전 11:44               918 server.js
2017-04-19  오전 11:45    <DIR>          solution
2017-04-19  오전 11:45    <DIR>          training
2017-04-19  오전 11:44    <DIR>          util
              10개 파일              14,770 바이트
               8개 디렉터리  24,384,790,528 바이트 남음

SDS@SDS-PC c:\dev\chatbot-tutorial
$ cd ..

SDS@SDS-PC c:\dev
$ dir
 C 드라이브의 볼륨에는 이름이 없습니다.
 볼륨 일련 번호: 0660-5B61

 c:\dev 디렉터리

2017-04-19  오전 11:44    <DIR>          .
2017-04-19  오전 11:44    <DIR>          ..
2017-03-29  오전 09:35    <DIR>          apache-maven-3.3.9
2017-01-03  오후 04:31    <DIR>          apache-tomcat-7.0.73
2017-04-03  오후 02:07    <DIR>          bluemix-integration-lab
2017-04-19  오후 12:00    <DIR>          chatbot-tutorial
2017-04-06  오후 09:15        49,778,258 Faro.war
2017-04-11  오전 10:02    <DIR>          Microservices_UI
2017-04-05  오전 11:28             4,236 SAN.pem
2017-04-04  오전 12:12    <DIR>          wlp
               2개 파일          49,782,494 바이트
               8개 디렉터리  24,384,770,048 바이트 남음

SDS@SDS-PC c:\dev
$ cd chatbot-tutorial

SDS@SDS-PC c:\dev\chatbot-tutorial
$ dir
 C 드라이브의 볼륨에는 이름이 없습니다.
 볼륨 일련 번호: 0660-5B61

 c:\dev\chatbot-tutorial 디렉터리

2017-04-19  오후 12:00    <DIR>          .
2017-04-19  오후 12:00    <DIR>          ..
2017-04-19  오전 11:44                69 .cfignore
2017-04-19  오전 11:50               403 .env.example
2017-04-19  오전 11:44                66 .gitignore
2017-04-19  오전 11:45    <DIR>          api
2017-04-19  오전 11:44             1,001 app.js
2017-04-19  오전 11:44               212 config.json
2017-04-19  오전 11:44            10,349 LICENSE
2017-04-19  오전 11:44               400 manifest.yml
2017-04-19  오후 12:00    <DIR>          node_modules
2017-04-19  오전 11:55             1,334 package.json
2017-04-19  오전 11:44    <DIR>          public
2017-04-19  오전 11:44                18 README.md
2017-04-19  오전 11:44               918 server.js
2017-04-19  오전 11:45    <DIR>          solution
2017-04-19  오전 11:45    <DIR>          training
2017-04-19  오전 11:44    <DIR>          util
              10개 파일              14,770 바이트
               8개 디렉터리  24,384,770,048 바이트 남음

SDS@SDS-PC c:\dev\chatbot-tutorial
$
SDS@SDS-PC c:\dev\chatbot-tutorial
$
SDS@SDS-PC c:\dev\chatbot-tutorial
$
SDS@SDS-PC c:\dev\chatbot-tutorial
$ dir
 C 드라이브의 볼륨에는 이름이 없습니다.
 볼륨 일련 번호: 0660-5B61

 c:\dev\chatbot-tutorial 디렉터리

2017-04-19  오후 12:00    <DIR>          .
2017-04-19  오후 12:00    <DIR>          ..
2017-04-19  오전 11:44                69 .cfignore
2017-04-19  오전 11:50               403 .env.example
2017-04-19  오전 11:44                66 .gitignore
2017-04-19  오전 11:45    <DIR>          api
2017-04-19  오전 11:44             1,001 app.js
2017-04-19  오전 11:44               212 config.json
2017-04-19  오전 11:44            10,349 LICENSE
2017-04-19  오전 11:44               400 manifest.yml
2017-04-19  오후 12:00    <DIR>          node_modules
2017-04-19  오전 11:55             1,334 package.json
2017-04-19  오전 11:44    <DIR>          public
2017-04-19  오전 11:44                18 README.md
2017-04-19  오전 11:44               918 server.js
2017-04-19  오전 11:45    <DIR>          solution
2017-04-19  오전 11:45    <DIR>          training
2017-04-19  오전 11:44    <DIR>          util
              10개 파일              14,770 바이트
               8개 디렉터리  24,384,679,936 바이트 남음

SDS@SDS-PC c:\dev\chatbot-tutorial
$ npm start

> conversation-simple@0.1.1 start c:\dev\chatbot-tutorial
> node server.js

APIs initialize
c:\dev\chatbot-tutorial\node_modules\watson-developer-cloud\lib\base_service.js:
      throw new Error('Argument error: username and password are required unless
      ^

Error: Argument error: username and password are required unless use_unauthentic
    at ConversationV1.BaseService.initCredentials (c:\dev\chatbot-tutorial\node_
    at ConversationV1.BaseService (c:\dev\chatbot-tutorial\node_modules\watson-d
    at new ConversationV1 (c:\dev\chatbot-tutorial\node_modules\watson-developer
    at Object.<anonymous> (c:\dev\chatbot-tutorial\api\message.js:23:20)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\npm ERR! node v6.9.4
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! conversation-simple@0.1.1 start: `node server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the conversation-simple@0.1.1 start script 'node server.js'. npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the conversation-simple pnpm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node server.js
npm ERR! You can get information on how to open an issue for this project with: npm ERR!     npm bugs conversation-simple
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls conversation-simple
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     c:\dev\chatbot-tutorial\npm-debug.log

SDS@SDS-PC c:\dev\chatbot-tutorial
$ C:\dev\chatbot-tutorial\.env.example ^Z

SDS@SDS-PC c:\dev\chatbot-tutorial
$ npm start

> conversation-simple@0.1.1 start c:\dev\chatbot-tutorial
> node server.js

APIs initialize
c:\dev\chatbot-tutorial\node_modules\watson-developer-cloud\lib\base_service.js:
      throw new Error('Argument error: username and password are required unless
      ^

Error: Argument error: username and password are required unless use_unauthentic
    at ConversationV1.BaseService.initCredentials (c:\dev\chatbot-tutorial\node_
    at ConversationV1.BaseService (c:\dev\chatbot-tutorial\node_modules\watson-d
    at new ConversationV1 (c:\dev\chatbot-tutorial\node_modules\watson-developer
    at Object.<anonymous> (c:\dev\chatbot-tutorial\api\message.js:23:20)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\npm ERR! node v6.9.4
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! conversation-simple@0.1.1 start: `node server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the conversation-simple@0.1.1 start script 'node server.js'. npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the conversation-simple pnpm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node server.js
npm ERR! You can get information on how to open an issue for this project with: npm ERR!     npm bugs conversation-simple
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls conversation-simple
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     c:\dev\chatbot-tutorial\npm-debug.log

SDS@SDS-PC c:\dev\chatbot-tutorial
$ npm install

SDS@SDS-PC c:\dev\chatbot-tutorial
$ npm start

> conversation-simple@0.1.1 start c:\dev\chatbot-tutorial
> node server.js

APIs initialize
c:\dev\chatbot-tutorial\node_modules\watson-developer-cloud\lib\base_service.js:
      throw new Error('Argument error: username and password are required unless
      ^

Error: Argument error: username and password are required unless use_unauthentic
    at ConversationV1.BaseService.initCredentials (c:\dev\chatbot-tutorial\node_
    at ConversationV1.BaseService (c:\dev\chatbot-tutorial\node_modules\watson-d
    at new ConversationV1 (c:\dev\chatbot-tutorial\node_modules\watson-developer
    at Object.<anonymous> (c:\dev\chatbot-tutorial\api\message.js:23:20)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\npm ERR! node v6.9.4
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! conversation-simple@0.1.1 start: `node server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the conversation-simple@0.1.1 start script 'node server.js'. npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the conversation-simple pnpm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node server.js
npm ERR! You can get information on how to open an issue for this project with: npm ERR!     npm bugs conversation-simple
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls conversation-simple
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     c:\dev\chatbot-tutorial\npm-debug.log

SDS@SDS-PC c:\dev\chatbot-tutorial
$ dir
 C 드라이브의 볼륨에는 이름이 없습니다.
 볼륨 일련 번호: 0660-5B61

 c:\dev\chatbot-tutorial 디렉터리

2017-04-19  오후 12:06    <DIR>          .
2017-04-19  오후 12:06    <DIR>          ..
2017-04-19  오전 11:44                69 .cfignore
2017-04-19  오후 12:05               388 .env - 복사본.example
2017-04-19  오후 12:05               388 .env.example
2017-04-19  오전 11:44                66 .gitignore
2017-04-19  오전 11:45    <DIR>          api
2017-04-19  오전 11:44             1,001 app.js
2017-04-19  오전 11:44               212 config.json
2017-04-19  오전 11:44            10,349 LICENSE
2017-04-19  오전 11:44               400 manifest.yml
2017-04-19  오후 12:05    <DIR>          node_modules
2017-04-19  오후 12:05             4,006 npm-debug.log
2017-04-19  오전 11:55             1,334 package.json
2017-04-19  오전 11:44    <DIR>          public
2017-04-19  오전 11:44                18 README.md
2017-04-19  오전 11:44               918 server.js
2017-04-19  오전 11:45    <DIR>          solution
2017-04-19  오전 11:45    <DIR>          training
2017-04-19  오전 11:44    <DIR>          util
              12개 파일              19,149 바이트
               8개 디렉터리  24,383,672,320 바이트 남음

SDS@SDS-PC c:\dev\chatbot-tutorial
$ cp .env.example .env
'cp'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
배치 파일이 아닙니다.

SDS@SDS-PC c:\dev\chatbot-tutorial
$ copy .env.example .env
        1개 파일이 복사되었습니다.

SDS@SDS-PC c:\dev\chatbot-tutorial
$ npm start

> conversation-simple@0.1.1 start c:\dev\chatbot-tutorial
> node server.js

APIs initialize
Server running on port: 3000
User Input : undefined
Processed Input : undefined
--------------------------------------------------
Conversation Output : Welcome!
--------------------------------------------------
User Input : hi there
Processed Input : hi there
--------------------------------------------------
Conversation Output : Hi, what can I do for you?
--------------------------------------------------
User Input : reserve room
Processed Input : reserve room
--------------------------------------------------
Conversation Output : When do you want to have a meeting?
--------------------------------------------------
User Input : 10/7 10:00
Processed Input : 10/7 10:00
--------------------------------------------------
Conversation Output : Jesang Myung, OK I will check the availabilty of room.
--------------------------------------------------
Action : check-availability
User Input : ok
Processed Input : ok
--------------------------------------------------
Conversation Output : OK.  at 10:00:00, 2017-10-07 is reserved for you.
--------------------------------------------------
Action : confirm-reservation
일괄 작업을 끝내시겠습니까 (Y/N)? y

SDS@SDS-PC c:\dev\chatbot-tutorial
$ cf lo^A

SDS@SDS-PC c:\dev\chatbot-tutorial
$







---
declared-services:
  my-conversation-service:
    label: conversation
    plan: free
  camomile-cloudantNoSQLDB:
    label: cloudantNoSQLDB
    plan: Lite
applications:
- name: meetingroom-reservation-with-jmyung
  command: npm start
  path: .
  memory: 256M
  instances: 1
  services:
  - Conversation-ug
  - iot-jmyung-cloudantNoSQLDB
  env:
    NPM_CONFIG_PRODUCTION: false









SDS@SDS-PC c:\dev\chatbot-tutorial
$ npm start

> conversation-simple@0.1.1 start c:\dev\chatbot-tutorial
> node server.js

APIs initialize
Server running on port: 3000
User Input : undefined
Processed Input : undefined
--------------------------------------------------
Conversation Output : Welcome!
--------------------------------------------------
User Input : hi
Processed Input : hi
--------------------------------------------------
Conversation Output : Hey, what can I do for you?
--------------------------------------------------
User Input : reserve
Processed Input : reserve
--------------------------------------------------
Conversation Output : When do you want to have a meeting?
--------------------------------------------------
User Input : 10/01 15:30
Processed Input : 10/01 15:30
--------------------------------------------------
Conversation Output : Jesang Myung, OK I will check the availabilty of room.
--------------------------------------------------
Action : check-availability
User Input : yes
Processed Input : yes
--------------------------------------------------
Conversation Output : OK.  at 15:30:00, 2017-10-01 is reserved for you.
--------------------------------------------------
Action : confirm-reservation






https://developer.ibm.com/kr/cloud/bluemix/watsonservice/2017/02/19/watsonchatbot-4-watson-conversation/


https://developer.ibm.com/kr/cloud/bluemix/watsonservice/2017/03/04/watsonchatbot-5-watson-conversation/



'Cloud > Bluemix' 카테고리의 다른 글

OpenWhisk  (0) 2017.04.20
Royal Bank of Canada's Journey  (0) 2017.04.20
Service & deployment  (0) 2017.04.18
translate  (0) 2017.04.17
Watson IoT  (0) 2017.04.17