mirror of https://github.com/vapor/docs.git
update cn index translation (#726)
This commit is contained in:
parent
4eb478e78b
commit
bf31073021
|
|
@ -1,10 +1,4 @@
|
|||
|
||||
Vapor 是 Swift 最流行的 Web 网络框架。它可以为你的网站或 API 提供精美的页面展示和简易的使用方式。
|
||||
|
||||
|
||||
!!! 招募-翻译爱好者
|
||||
Vapor 中文翻译小组现招募翻译爱好者参与文档的翻译和校对,你可以查看中文节点下尚未完成的部分,然后选一篇你感兴趣的文档进行翻译,之后 [在此](https://github.com/vapor/docs) 提交 PR,我们将在校对无误后同步更新在这个文档。
|
||||
|
||||
欢迎使用 [Vapor](https://vapor.codes/)!Vapor 是基于 [Swift](https://www.swift.org/) 编程语言而开发的最流行的 Web 网络框架,这是一种更先进、强大且类型安全的编程语言。通过 Vapor,你可以使用 Swift 编写后端、Web 应用 API 或 HTTP 服务,与传统的服务器语言相比具有许多优点。
|
||||
|
||||
## 开始
|
||||
|
||||
|
|
@ -12,26 +6,23 @@ Vapor 是 Swift 最流行的 Web 网络框架。它可以为你的网站或 API
|
|||
|
||||
Vapor 安装完成后,请查看 [开始 → 你好,世界](getting-started/hello-world.md) 示例,以创建你的第一个 Vapor 应用程序!
|
||||
|
||||
|
||||
## 其他资源
|
||||
|
||||
这里是其他一些有关 Vapor 框架的内容,以供学习与交流。
|
||||
|
||||
| 名称 | 描述 | 链接 |
|
||||
|----------------|--------------------------------------------------|-----------------------------------------------------------------|
|
||||
| Vapor Discord | 与数千名 Vapor 开发人员交流。 | [访问 →](http://vapor.team) |
|
||||
| Vapor Discord | 与数千名 Vapor 开发人员交流。 | [访问 →](http://vapor.team) |
|
||||
| API docs | 通过代码注释自动生成的文档。 | [访问 →](http://api.vapor.codes) |
|
||||
| Stack Overflow | 使用 `Vapor` 标签提问和回答相关问题。 | [访问 →](http://stackoverflow.com/questions/tagged/vapor) |
|
||||
| Swift Forums |在 Swift.org 论坛的 Vapor 专题发布。 | [访问 →](https://forums.swift.org/c/related-projects/vapor) |
|
||||
| Source Code | 了解 Vapor 的工作原理。 | [访问 →](https://github.com/vapor/vapor) |
|
||||
| GitHub Issues | 在 GitHub 上报告错误或提交功能。 | [访问 →](https://github.com/vapor/vapor/issues) |
|
||||
|
||||
| Stack Overflow | 使用 `Vapor` 标签提问和回答相关问题。 | [访问 →](http://stackoverflow.com/questions/tagged/vapor) |
|
||||
| Swift Forums |在 Swift.org 论坛的 Vapor 专题发布。 | [访问 →](https://forums.swift.org/c/related-projects/vapor) |
|
||||
| Source Code | 了解 Vapor 的工作原理。 | [访问 →](https://github.com/vapor/vapor) |
|
||||
| GitHub Issues | 在 GitHub 上报告错误或提交功能。 | [访问 →](https://github.com/vapor/vapor/issues) |
|
||||
|
||||
## 旧版文档
|
||||
|
||||
旧版文档已废弃,如有需要可在此查看:[https://legacy.docs.vapor.codes/](https://legacy.docs.vapor.codes/)。
|
||||
|
||||
|
||||
## 作者
|
||||
|
||||
Vapor 核心团队以及 Vapor 社区的数百名成员。
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
# 在 Linux 上面安装
|
||||
|
||||
你需要 Swift 5.2 或更高版本来使用Vapor。 Swift5.2可以通过[Swift.org](https://swift.org/download/)上面的工具链来安装。
|
||||
你需要 Swift 5.2 或更高版本来使用 Vapor。可以通过 [Swift.org](https://swift.org/download/) 上面的工具链来安装。
|
||||
|
||||
## 支持的发行版和版本
|
||||
|
||||
|
|
@ -18,11 +18,11 @@ Vapor 与 Swift 5.2 或者更高的版本对 Linux 的版本支持保持一致
|
|||
|CentOS|8|>= 5.2.4|
|
||||
|Amazon Linux|2|>= 5.2.4|
|
||||
|
||||
官方不支持的 Linux 发行版可能可以通过编译源码来运行 Swift,但是 Vapor 不能保证其稳定性。可以在 [Swift repo](https://github.com/apple/swift#getting-started) 学习更多关于编译 Swift。
|
||||
不受官方支持的 Linux 发行版也可以通过编译源代码来运行 Swift,但是 Vapor 不能保证其稳定性。可以在 [Swift repo](https://github.com/apple/swift#getting-started) 学习更多关于编译 Swift 的信息。
|
||||
|
||||
## 安装 Swift
|
||||
|
||||
访问 Swift.org's [Using Downloads](https://swift.org/download/#using-downloads) 手册来学习如何在 Linux 安装 Swift。
|
||||
访问 Swift.org 的 [Using Downloads](https://swift.org/download/#using-downloads) 手册来学习如何在 Linux 安装 Swift。
|
||||
|
||||
### Fedora
|
||||
|
||||
|
|
@ -37,13 +37,13 @@ sudo dnf install swift-lang
|
|||
|
||||
## Docker
|
||||
|
||||
你也可以使用预装了编译器的 Swift 官方 Docker 镜像,可以在[Swift's Docker Hub](https://hub.docker.com/_/swift)了解更多。
|
||||
你也可以使用预装了编译器的 Swift 官方 Docker 镜像,可以在 [Swift's Docker Hub](https://hub.docker.com/_/swift) 了解更多。
|
||||
|
||||
## 安装工具箱(Install Toolbox)
|
||||
|
||||
现在你已经安装了Swift,让我们安装 [Vapor Toolbox](https://github.com/vapor/toolbox)。使用 Vapor 不是必须要使用此 CLI 工具,但它包含有用的实用程序。
|
||||
现在你已经安装了 Swift,让我们安装 [Vapor Toolbox](https://github.com/vapor/toolbox)。使用 Vapor 不是必须要使用此 CLI 工具,但它包含有用的实用程序。
|
||||
|
||||
在 Linux 系统上,你需要通过源码来编译toolbox,访问 toolbox 在Github上的 <a href="https://github.com/vapor/toolbox/releases" target="_blank">releases</a> 来获取最新版本
|
||||
在 Linux 系统上,你需要通过源码来编译 toolbox,在 Github 上查看 toolbox 的 <a href="https://github.com/vapor/toolbox/releases" target="_blank">releases</a> 来获取最新版本。
|
||||
|
||||
```sh
|
||||
git clone https://github.com/vapor/toolbox.git
|
||||
|
|
@ -62,4 +62,4 @@ vapor --help
|
|||
|
||||
## 下一步
|
||||
|
||||
在你安装完 Swift 之后,通过 [开始 → Hello, world](../getting-started/hello-world.md) 来学习创建你的第一个应用。
|
||||
在你安装完 Swift 之后,通过 [开始 → 你好,世界](../getting-started/hello-world.md) 来学习创建你的第一个应用。
|
||||
|
|
|
|||
|
|
@ -45,4 +45,4 @@ vapor --help
|
|||
|
||||
## 下一步
|
||||
|
||||
现在你已经安装了 Swift and Vapor Toolbox,在 [开始 → 你好,世界](../getting-started/hello-world.md) 中创建你的第一个 Vapor 应用程序。
|
||||
现在你已经安装了 Swift 和 Vapor Toolbox,在 [开始 → 你好,世界](../getting-started/hello-world.md) 中创建你的第一个 Vapor 应用程序。
|
||||
|
|
|
|||
Loading…
Reference in New Issue