项目作者: greenglobal

项目描述 :
Sample ESB with Zato
高级语言: JavaScript
项目地址: git://github.com/greenglobal/zato-demo.git
创建时间: 2017-06-07T10:22:48Z
项目社区:https://github.com/greenglobal/zato-demo

开源协议:

下载


zato-demo

Sample ESB with Zato. Watch our YouTube playlist here.

Guide

1, Get started with docker-compose:

  1. git clone https://github.com/greenglobal/zato-demo.git
  2. cd zato-demo
  3. docker-compose up

From another CLI tab, ping a test:

  1. curl localhost:11223/zato/ping ; echo

If everything is OK, we’ve got:

2, Get IP address and admin passwords:

  1. # print ip info
  2. docker exec cluster1 ifconfig
  3. # print 2 passwords
  4. docker exec cluster1 cat /opt/zato/web_admin_password /opt/zato/zato_user_password

3, Login web admin

4, Test documents services

After adding the services in /service1 & service2:

  1. $ curl localhost:11223/tutorial/first-service -d '{"cust_id":123, "cust_type":"A"}'
  2. $ curl localhost:11223/documents -X POST -d '<request><id>11</id><subject>Hello world</subject><body>Here is the body</body><by>Xooner</by><time>1106058601</time></request>'
  3. ...