文件名称:microservices-poc
文件大小:35KB
文件格式:ZIP
更新时间:2024-05-04 22:52:26
nodejs mysql docker microservice rabbitmq
微服务概念验证 跑步 跑步: source dev.sh 启动Rabbit和Mysql容器: start_stores 安装Node.js软件包: install_packages 队列服务 启动API和Worker: start_queues_micro 创建一个新订单: curl -H ' Content-type: application/json ' -X POST -d ' {"user": "juca", "address": "Av Sao joao", "price": 1223.2} ' localhost:3000/order Response: { " id " : " e8af94e4-e739-436e-9f4f-38d2e2a15688 " } 检查订单状态: curl localhost:3000/status/e8af94e4-e739-
【文件预览】:
microservices-poc-master
----.gitignore(27B)
----docker-compose-exchanges.yml(880B)
----exchanges()
--------store.js(741B)
--------catalog.js(762B)
--------api.js(890B)
----package.json(315B)
----dev.sh(551B)
----db()
--------migrations.js(402B)
--------mysql.js(174B)
--------rabbit.js(1KB)
----utils.js(486B)
----README.md(1KB)
----config.js(144B)
----docker-compose-queues.yml(770B)
----docker-compose-dbs.yml(494B)
----messaging()
--------api.js(1KB)
--------worker.js(1KB)
----yarn.lock(64KB)