Setup up your environment - 环境配置

原创
2022/04/16 00:52
阅读数 170

目录:https://my.oschina.net/zgldh/blog/5514606
原文:https://docs.edgexfoundry.org/2.1/walk-through/Ch-WalkthroughSetup/

Install Docker, Docker Compose & EdgeX Foundry

安装 Docker, Docker Compose 和 EdgeX Foundry

To explore EdgeX and walk through it's APIs and how it works, you will need:
为了开始EdgeX探索之旅,你需要如下软件:

  • Docker
  • Docker Compose
  • EdgeX Foundry (the base set of containers)

If you have not already done so, proceed to Getting Started With Docker for how to get these tools and run EdgeX Foundry. If you have the tools and EdgeX already installed and running, you can proceed to the Walkthrough Use Case.
如果你还没有准备好,请阅读 Docker 入门 来学习如何安装Docker并运行 EdgeX Foundry。如果你已经安装好这些软件并且已经跑起来了 EdgeX,请继续阅读 案例

Install Postman (optional)

安装 Postman (可选)

You can follow this walkthrough making HTTP calls from the command-line with a tool like curl, but it's easier if you use a graphical user interface tool designed for exercising REST APIs. For that we like to use Postman. You can download the native Postman app for your operating system.
你可以跟随本示例使用命令行工具(如 curl)来发送 HTTP 请求,不过使用图形化工具来发送 REST 请求可能会更简单一些。于是我们推荐使用 Postman。你可以下载适合你操作系统的 Postman 桌面程序。

Note 注意
Example curl commands will be provided with the walk through so that you can run this walkthrough without Postman.
由于示例中会把curl命令帮你写好,所以你其实并不需要下载 Postman。

Alert 警告
It is assumed that for the purposes of this walk through demonstration
为了顺利完成本示例攻略

  • all API micro services are running on localhost. If this is not the case, substitute your hostname for localhost.
    所有的微服务都运行在 localhost。如果并非如此,请将你的主机名改为localhost
  • any POST call has the associated CONTENT-TYPE=application/JSON header associated to it unless explicitly stated otherwise.
    除非另有说明,所有 POST 请求的 header 中都应该带有 CONTENT-TYPE=application/JSON

上一篇 EdgeX Demonstration API Walk Through - EdgeX API 示例实战攻略

下一篇 Example Use Case - 案例

展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
0 评论
0 收藏
0
分享
返回顶部
顶部