#yum update
#yum -y groupinstall "Developement Tools"
#yum -y install screen
#cd /usr/src
Install Node JS
#wget http://nodejs.org/dist/v4.3.2/node-v4.3.2.tar.gz
# tar -xzvf node-v4.3.2.tar.gz
# cd node-v4.3.2
# make //it will take much time
---------------------------------------------------------
Node.js installation
#cd /usr/src
https://aws.amazon.com/blogs/compute/create-and-deploy-a-chat-bot-to-aws-lambda-in-five-minutes/
https://www.digitalocean.com/community/tutorials/how-to-install-and-run-a-node-js-app-on-centos-6-4-64bit
http://cpp-dev-talk.blogspot.in/2013/12/error-package-requires.html
https://www.metachris.com/2015/10/how-to-install-nodejs-4-on-centos/
#yum -y groupinstall "Developement Tools"
#yum -y install screen
#cd /usr/src
Install Node JS
#wget http://nodejs.org/dist/v4.3.2/node-v4.3.2.tar.gz
# tar -xzvf node-v4.3.2.tar.gz
# cd node-v4.3.2
# make //it will take much time
# make install
-------------------------------------------------------------------
Install claudia
# npm install claudia -g
/usr/local/bin/claudia -> /usr/local/lib/node_modules/claudia/bin/cmd.js
claudia@2.12.1 /usr/local/lib/node_modules/claudia
âââ minimal-request-promise@1.3.0
âââ oh-no-i-insist@1.1.1
âââ uuid@2.0.3
âââ minimist@1.2.0
âââ shelljs@0.5.3
âââ tar-fs@1.15.2 (chownr@1.0.1, mkdirp@0.5.1, pump@1.0.2, tar-stream@1.5.4)
âââ gunzip-maybe@1.4.0 (is-gzip@1.0.0, is-deflate@1.0.0, browserify-zlib@0.1.4, through2@2.0.3, pumpify@1.3.5, peek-stream@1.1.2)
âââ archiver@0.21.0 (buffer-crc32@0.2.13, async@1.5.2, readable-stream@2.0.6, tar-stream@1.3.2, zip-stream@0.8.0, glob@6.0.4, archiver-utils@0.3.0, lodash@3.10.1)
âââ proxy-agent@2.0.0 (https-proxy-agent@1.0.0, http-proxy-agent@1.0.0, extend@3.0.1, lru-cache@2.6.5, debug@2.6.8, agent-base@2.0.1, socks-proxy-agent@2.1.0, pac-proxy-agent@1.0.0)
âââ aws-sdk@2.57.0 (sax@1.2.1, xml2js@0.4.17, querystring@0.2.0, uuid@3.0.1, jmespath@0.15.0, crypto-browserify@1.0.9, url@0.10.3, buffer@5.0.6, xmlbuilder@4.2.1)
# npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.
See `npm help json` for definitive documentation on these fields
and exactly what they do.
Use `npm install <pkg> --save` afterwards to install a package and
save it as a dependency in the package.json file.
Press ^C at any time to quit.
name: (node-v4.3.2)
# npm install claudia-bot-builder -S
claudia-bot-builder@2.15.0 node_modules/claudia-bot-builder
âââ minimal-request-promise@1.3.0
âââ oh-no-i-insist@1.1.1
âââ tsscmp@1.0.5
âââ claudia-api-builder@2.4.2
âââ alexa-message-builder@1.1.0
âââ souffleur@1.0.0
# npm install huh -S
huh@2.0.1 node_modules/huh
# vi bot.js
var botBuilder = require('claudia-bot-builder'),
excuse = require('huh');
module.exports = botBuilder(function (request) {
return 'Thanks for sending ' + request.text +
'. Your message is very important to us, but ' +
excuse.get();
});
//you can deploy your bot
-----------------------------------------------------------------
Install Botpress -- https://botpress.io/get_started
you need node 4.6.and more
# npm install -g botpress
.
.
.
â âââ uid-number@0.0.6
ââ⬠universal-analytics@0.4.13
â âââ async@1.2.1
â âââ underscore@1.7.0
âââ uuid@3.0.1
ââ⬠winston@2.3.1
âââ async@1.0.0
âââ colors@1.0.3
âââ cycle@1.0.3
âââ eyes@0.1.8
âââ isstream@0.1.2
âââ stack-trace@0.0.10
now create you bot
# mkdir my-bot && cd my-bot
my-bot]# botpress init
[botpress]
Hey there, thanks for using botpress!
We'll walk you through the creation of your new bot.
For more information or help, please visit http://github.com/botpress/botpress
---------------
name: (my-bot) botname
author: fill
descriptor:fill
version:fill and hit enter
.
.
â â âââ string_decoder@0.10.31
â â âââ util-deprecate@1.0.2
â âââ uid-number@0.0.6
ââ⬠universal-analytics@0.4.13
â âââ async@1.2.1
â âââ underscore@1.7.0
âââ uuid@3.0.1
ââ⬠winston@2.3.1
âââ async@1.0.0
âââ colors@1.0.3
âââ cycle@1.0.3
âââ eyes@0.1.8
âââ isstream@0.1.2
âââ stack-trace@0.0.10
npm WARN my-bot@0.0.1 No repository field.
npm WARN my-bot@0.0.1 license should be a valid SPDX license expression
[botpress] OK installation has completed successfully
[botpress] now run `bp start` in your terminal
[root@ip-172-31-15-183 my-bot]# bp start
12:45:41 - info: Starting botpress version 0.2.2
12:45:41 - debug: Loading middleware: hear
12:45:41 - debug: Loading middleware: conversations
12:45:41 - info: Bot launched. Visit: http://localhost:3000
Install fb messenger - in modules - https://www.youtube.com/watch?v=HTpUmDz9kRY
Node.js installation
#cd /usr/src
https://aws.amazon.com/blogs/compute/create-and-deploy-a-chat-bot-to-aws-lambda-in-five-minutes/
https://www.digitalocean.com/community/tutorials/how-to-install-and-run-a-node-js-app-on-centos-6-4-64bit
http://cpp-dev-talk.blogspot.in/2013/12/error-package-requires.html
https://www.metachris.com/2015/10/how-to-install-nodejs-4-on-centos/
No comments:
Post a Comment