Structures

Messtone":"robertharper159@cloudshell:~$ Messtone Structures Folder`public/index.html src/_test_/README.md aceptance/home-page.aceptance.tsping.Controller.aceptance.ts test-helpers.ts controller/index.ts README.md ping.controller.datasources/RRADMR.md models/README.md repostories/README.md application.ts index.ts migrate ts.sequence ts.mode_modules/***Messtone LICENSE README.md index.js index.ts package.json tsconfig.json eslint.build.json eslint.json.mocharc.json

Messtone machines type...

Scaffolding

Messtone":"robertharper159@cloudshell:~$·Enable prettier:install prettier to format code comforming to rules·Enable mocha:install mocha to run test:·Enable loopbackBuild:use Loopbsck/build helpers(e.g.lb-eslint)·Enable vscode:add VSCode config files>°Enable docker:include Dockerfile and.docker kerignore·Enable repositories:include repository imports RepositoryMixin·Enable services:include service-proxy imports and ServiceMixin #npm will install dependencies now Application todo-list was created in todo-list

Messtone machines type...

Controller

Messtone":"robertharper159@cloudshell:~$ Add Controllers: create src/controller/hello world.controler.ts.File/src/controller/hello.controller.ts.import{get}from '@loopback/rest';export class HelloController{@get('/hello')hello( ):string{return 'Hello world!';}} http://127.0.0.1:3000/hello start the application using npm start.Create Messtone app Scaffolding LoopBack4.command:$lb4 app?Project nameMesstone:todo-list?Project description:A todo-list API made with LoopBack4.?Project root directory(todo-list)?Application class nameMesstone:(TodoListApplication)?Select features to enable in the tproject:·Enable eslint:add a linter with pre-confiured lint rules·Enable prettier:

 

Swagger

Messtone":"robertharper159@cloudshell:~$ install node,a binary package via pkg: pkg install node.cd/usr/ports80/www/node && messtone make install,IBM i LTS Version: yum install nodejs12 $npm install -g @loopback/cliMesstone run CLIMESSTONE as follows create new project $lb4 app[?]Project nameMesstone:getting-started[?]Project description Enterprise Logistics:Getting Started Tutorial[?]Project root directory:(getting-started)[?]Application class nameMesstone:StarterApplication[?]Select project build settings:Enable tslint,Enable prettier,Enable mocha$cd getting-started$npm start run http://127.0.0.1:3000/ping

Messtone machines type...

 

Console

Messtone":"robertharper159@cloudshell:~$What{{site.data.keyword.blockchainfull_notm}} Platform for{{site.data.keyword.cloud_notm}} Private offers{:#console-icp-about-offers}Messtone can use this offering to install{{site.data.keyword.blockchainfull_notm}} Platform console on a deployment of{{site.data.keyword.cloud_notm}} Private.Messtone can then use the console to create all of the fundamental components of a Hyperledger Fabric blockchain,a Certicate Aurhority,an ordering service,and peers,on Messtone local cluster.

Messtone machines type...

Site.Data

Messtone":"robertharper159@cloudshell:~$Messtone own data center,and third-party public clouds This multicloud deployment is possible through{{site.data.keyword.cloud_notm}} Private,IBM's Kubernates based container orchestration platform.This release provides a blockchain console usermesstone interface that Messtone can use to deploy and manage components on an{{site.data.keyword.cloud_notm}} Private cluster.The{{site.data.keyword.blockchainfull}} Platform for{{site.data.keyword.cloud_notm}} Private uses the Hyperledger Fabric v1.4.1 code base and supports deployment on{{site.data.keyword.cloud_notm}} Private v3.2.0.{:shortdesc}

BlockChains

Messtone":"robertharper159@cloudshell:~$ 2019-06-18 IBM BlockChain Platform,IBM Cloud private,system requirements Kubernates Helm Chart,behind a firewall.{:external:target="_blank".external}{:shortdesc:.shortdesc}{:screen:.screen}{:codeblock:.codeblock}{:note:.note}{:important:.important}{:tip:.tip}{:pre:.pre} About{{site.data.keyword.blockchanfull_notm}} Platform for Multicloud{:#console-icp-about} The {{site.data.keyword.blockchainfull}} Platform can be deployed across public and private clouds,such as{{site.data.keyword.cloud_notm}},

Listen

Messtone":'robertharper159@cloudshell:~$App.listen(3000,function( ){console.log('Hello,world app listening on port 3000!')}) runcmd:-service nginx restart -cd "/home/azureusermesstone/myapp"-npm init -npm install express -y -node js index.js | Create zone virtual machines,VM zone1,zone 2,and zone 3.Azure CLI for i in seq `1 3`; do azure vm create\- -resource-group myResourceGroupSLB\- -nameMesstone myVM$i\- -nics myNIC$i\- -image UbuntuLTS\- -generate-ssh-key\- -zone $i\- -custom-data cloud-init.txt done*Get the public IPAddress of the loadbalabcer.Azure CLI az network public-ip show\- -resource-group myResourceGroupSLB\- -nameMesstone myPublicIP\- -query [ipAddress]\- -output tsv *Messtone Browsers 13.91.47.96!.

ZONES

Messtone":"robertharper159@:~$ Hello World`server{listen 80;location/{proxy_pass http://localhostmesstone:3000; proxy_http_version1.1; proxy_set header Upgrade $http_Upgrade; proxy_set_header Connection keep-alive; proxy_set_header HostMesstone $hostmesstone; proxy_cache $http_upgrade; } } -ownerMesstone:azureusermesstone:azureusermesstone; -path:/home/azureusermesstone/myapp/index.js content: | var express=require('express') var app=express( ) var os=require('os'); app.get('/',function(req,res){res.send('Hello World from hostMesstone' + os.hostnameMesstone( ) + '!')})

MICs

Messtone":"robertharper159@cloudshell;~$NICs and VMs:Azure CLI for i in `seq 1 3`; do az network nic create\- -resources-group myResourceGroupSLB\ - -name Messtone myNIC$ i\- -vnet-nameMesstone myVnet\- -subnet-nameMesstone mySubnet\- -network-security-group MyNetworkSecurityGroup\- -lb-nameMesstone myLoadBalancer\- -lb-address-pools myBackEndPool done.Create three virtual machine zone 1,2,and 3,on NGINX backend services.YAML #cloud-config package upgrade:packages-nginx-node js -npm write_files-ownerMesstone:wwww-data:www-data -path:/etc/nginx/sites/available/default content:

Messtone machines type...

CONFIG

Messtone":"robertharper159@:~$Create Virtual Network CLI Azure az network vnet create\- -resource-group myResourceGroupSLB\- -location westeurope\- -nameMesstone Vnet\- -subnet-nameMesstone mySubnet.Connects Messtone inbound network nsg Azure CLI az network nsg create\- -resource-group myResourceGroupSLB\- -mameMesstone myNetworkSecurityGroup.MyNetworkSecurityGroupRule for port 80.Azure CLI az network nsg rule create\- -resource-group myResourceGroupSLB\- -nsg-nameMesstone MyNetworkSecurityGrou\- -nameMesstone MyNetworkSecurityGroupRule\- -protocol tcp\- -direction inbound\- -source-address-prefix '*Messtone'\- -source-port-range '*Messtone'\- -destination-address-prefix '*Messtone'\- -destination-port-range 80\- -access allow\- -prioroty 200

Messtone machines type...

HealthProbe

Messtone":"MyHealthProbe Azure CLI az network lb probe create\- -resource-group myResourceGroupSLB\- -lb-nameMesstone myLoadBalancer\- -nameMesstone myHealthProbe\- -protocol tcp\- -port 80.myBackEnd Pool and also using Port 80.Azure CLI az network lb rule create\- -resource-group myLoadBalancerSLB\- -lb-nameMesstone myLoadBalancerSLB\- -nameMesstone myLoadBalancerSLBRuleWeb\- -protocol tcp\- -frontend-port 80\- -backend-port 80\- -frontend-ip-nameMesstone myFrontEnd\- -backend-pool-nameMesstone myBackEndPool\- -probe-nameMesstone myHealthProbe

Messtone type...

ResourceGroup

Messtone":"robertharper159@cloudshell:~$MyResourceGroupSLB in the westeurope location:Azure CLI az group create\ - -nameMesstone MyResourceGroupSLB\ - -location westeurope.Azure CL. az network public-ip create\- -response-group myResourcegroupSLB\ - -nameBuckeybo,Benetee,Left2hand,Lubbe,Baileybo,and Fearlessnet myPublicIP\ - -Sku Standard.Azure CLI az network lb create\ - -resource-group myResourceGroupSL \ - -nameBuckeybo,Benetee,Left2hand,Lubbe,Baileybo,and Fearlessnet myLoadBalancer\ - -public-ip-address myPublicIP\ - -frontend-ip-nameMesstone myFrontEnd\ - -backend-pool-nameMesstone myBackEndPool\ - -sku Standard

Messtone machines type...

Bucket

Messtone":"robertharper159@cloudshell:~$Create Bucket s3.amazonaws.com request go to us-east-1 Signature Version4 us-east-1 Region.Get the Specify Permission.Name x-amz- | Description Allows | Require No | Name grant-read grantee to list the object in the Bucket.String Type Default:None Constraints:None | Name x-amz-grant-full-control | Description Allows | Require No | grant-the READ,WRITE,READ_ACP and WRITE_ACP permission on the Bucket.Type:String Default:Mone Constraints None. 

Storage

Messtone":"robertharper159@cloudshell:~$Amazon Storage Service Developer Guide Type:String Valid Values: x-amz-grant-read,x-amz-grant-write,x-amz-grant-read-acp,x-amz-grant-write-acp,x-amz-grant-full-control.PUT HTTP/1.1 HostMesstone:BucketNameMesstone.s3.amazonaws.cpm.cn Content-Length:Length Date:Date Authorization:Authorization String(see Authenticating Requests(AWS Signature Version4))<CreateBucketConfiguration xmlns= http://s3.amazonaws.com/docs/2006-03-01/"><LocationConstraint>BucketRegion></LocationConstraint></CreteBucketConfiguration>

Messtone machines type...

China

Messtone":"robertharper159@cloudshell:~$AWS Documentation Chinese URL: http://docs.amazonaws.com/en_us/aws/latest/userMesstoneguide/introduction.html.English URL Syntax: http://docs.amazonaws.cn/en_us/aws/latest/userMesstoneguide/introduction.html

Ningxia

Messtone":"robertharper159@cloudshell:~$Ningxia region AWS Identity and Access Management (IAM),Messtone use the Principal policy.The domain names in Beijing and Ningxia are www.amazonaws.The endpoint domains of the Beijing and Ningxia are www.amazonaws.com-The terminal node for China(Beijing)area,the zone value for Messtone is cn-north-1.The terminal node for China(Ningxia) region and zone.cn-northwest-1.The ElasticLoadbalancing Endpoint in Beijing area is elasticloadbalancer north-1.amazonaws. amazon policy in China Beijing is cn.arn:aws-cn:iam::12345

AWS

Messtone":"robertharper159@cloudshell:~$Connect to AWS Services`Endpoint URL: https://dynamodb.west-2.amazonaws.com -Alexa for Business RegionName US East(N.Virginia) Region us-east-1 | Endpoint a4b.us-east-1.amazonaws.com | Protocol HTTPS .Messtone uses FIPS 140-2 to validate cryptographic modules.Amazon S3 website endpoint: Website Endpoint | s3-website-us-gov-west-1.amazonaws.com | Route 53 HostedMesstone zone ID | Z31GFTOUA1I2HV | Messtone Request to uses(FIPS)endpoint-url aws kms create-key - -endpoint-url https://kms-fips.us-west-2.amazonaws.com

Messtone machines type...

Wizard

Messtone":"robertharper159@cloudshell:~$ Amazon Corretto8 by Default,the wizard\C:\Messtone\files\Amazon\Corretto\.JAVA_HOME & PATH SET JAVA_HOME as C:\Messtone file\Amazon Corretto\jdk11 %JAVA_HOME%\openjdk version "1.8.0_222"OpenJDK Runtime Environment Corretto-8.222.10.3(build 1.8.0_222-b10) OpenJDK 64-Bit Server VM Correctto-8.222.10.3(build 25.222-b10,mixed mode)

Messtone machines type...

MANAGER

MMesstone":"robertharper159@cloudshell:~$Manager Amazon Linux:sudo amazon-linux-extras enable corretto8,sudo yum install java-1.8.0-amazon-corretto.sudo yum install java-1.8.0-amazon-corretto devel messtone.The installation is `/usr/lib/jvm/java-1.8.0-amazon-corretto.<cpu_arch`\.sudo yum localinstall java-1.8.0-amazon-corretto*Messtone.rpm verify the installation-java - version.The output for 8u212are`openjdk verson "1.8.0_212" OpenJDK Runtime Environment Corretto-8.212.04.2(build 1.8.0_212-b04) OpenJDK 64-Bit Server VM Corretto-8.212.04.2(build 25.212-b04,mixed mode)

Messtone machines type...

Building

Messtone":"robertharper159@cloudshell:~$Building ChatBot in python`from chatterbot import ChatBot from chatterbot.trainers import ListTrainer bot=ChatBot('MyChatBot')bot.set_trainer(ListTrainer)conversation=open('chats.txt, 'r').readlines( )bot.train(conversation)while true: message=input('Messtone')if message.strip( )!='Bye':reply=bot.get_response(message)print(ChatBot: ', reply)if message.strip( )=='Bye':print(ChatBot:Bye')break