mirror of https://github.com/vapor/docs.git
Renamed gettingstarted to getting-started for SEO
This commit is contained in:
parent
fee911560f
commit
b27a6dfeb4
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
Controllers are a great way to organize your code. They are collections of methods that accept a request and return a response.
|
||||
|
||||
A good place to put your controllers is in the [Controllers](../gettingstarted/folder-structure.md#controllers) folder.
|
||||
A good place to put your controllers is in the [Controllers](../getting-started/folder-structure.md#controllers) folder.
|
||||
|
||||
## Overview
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
`Controller` 是将应用程序的不同逻辑进行分组的优秀方案,大多数 Controller 都具备接受多种请求的功能,并根据需要进行响应。
|
||||
|
||||
建议将其放在 [Controllers](../gettingstarted/folder-structure.md#controllers) 文件夹下,具体情况可以根据需求划分模块。
|
||||
建议将其放在 [Controllers](../getting-started/folder-structure.md#controllers) 文件夹下,具体情况可以根据需求划分模块。
|
||||
|
||||
|
||||
## 概述
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ When creating a project using `vapor new`, answer "yes" to including Fluent and
|
|||
|
||||
### Existing Project
|
||||
|
||||
If you have an existing project that you want to add Fluent to, you will need to add two dependencies to your [package](../gettingstarted/spm.md):
|
||||
If you have an existing project that you want to add Fluent to, you will need to add two dependencies to your [package](../getting-started/spm.md):
|
||||
|
||||
- [vapor/fluent](https://github.com/vapor/fluent)@4.0.0
|
||||
- One (or more) Fluent driver(s) of your choice
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Willkommen zur Dokumentation von Vapor! Vapor ist ein Web-Framework für Swift,
|
|||
|
||||
## Einstieg
|
||||
|
||||
Für die Installation, folge den Anweisungen im Abschnitt [Installation → macOS](install/macos.de.md). Nach der Installation, folge den Anweisungen [Erste Schritte → Hello, world](gettingstarted/hello-world.de.md) um deine erste Vapor-Anwendungen zu erstellen.
|
||||
Für die Installation, folge den Anweisungen im Abschnitt [Installation → macOS](install/macos.de.md). Nach der Installation, folge den Anweisungen [Erste Schritte → Hello, world](getting-started/hello-world.de.md) um deine erste Vapor-Anwendungen zu erstellen.
|
||||
|
||||
## Hilfen
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Welcome to the Vapor Documentation! Vapor is a web framework for Swift, allowing
|
|||
|
||||
If this is your first time using Vapor, head to [Install → macOS](install/macos.md) to install Swift and Vapor.
|
||||
|
||||
Once you have Vapor installed, check out [Getting Started → Hello, world](gettingstarted/hello-world.md) to create your first Vapor app!
|
||||
Once you have Vapor installed, check out [Getting Started → Hello, world](getting-started/hello-world.md) to create your first Vapor app!
|
||||
|
||||
## Other Sources
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Welkom bij de Vapor Documentatie! Vapor is een web framework voor Swift, dat u t
|
|||
|
||||
Als dit je eerste keer is dat je Vapor gebruikt, ga naar [Install → macOS](install/macos.md) om Swift en Vapor te installeren.
|
||||
|
||||
Wanneer dat je Vapor hebt geinstalleerd, bekijk dan [Getting Started → Hello, world](gettingstarted/hello-world.md) om je eerste Vapor app te maken.
|
||||
Wanneer dat je Vapor hebt geinstalleerd, bekijk dan [Getting Started → Hello, world](getting-started/hello-world.md) om je eerste Vapor app te maken.
|
||||
|
||||
## Andere bronnen
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ Vapor 是 Swift 最流行的 Web 网络框架。它可以为你的网站或 API
|
|||
|
||||
如果你是第一次使用 Vapor,请前往 [安装 → macOS](install/macos.md) 安装 Swift 和 Vapor 开发环境。
|
||||
|
||||
Vapor 安装完成后,请查看 [开始 → 你好,世界](gettingstarted/hello-world.md) 示例,以创建你的第一个 Vapor 应用程序!
|
||||
Vapor 安装完成后,请查看 [开始 → 你好,世界](getting-started/hello-world.md) 示例,以创建你的第一个 Vapor 应用程序!
|
||||
|
||||
|
||||
## 其他资源
|
||||
|
|
|
|||
|
|
@ -60,4 +60,4 @@ You should see a list of available commands.
|
|||
|
||||
## Next
|
||||
|
||||
After you have installed Swift, create your first app in [Getting Started → Hello, world](../gettingstarted/hello-world.md).
|
||||
After you have installed Swift, create your first app in [Getting Started → Hello, world](../getting-started/hello-world.md).
|
||||
|
|
|
|||
|
|
@ -62,4 +62,4 @@ vapor --help
|
|||
|
||||
## 下一步
|
||||
|
||||
在你安装完 Swift 之后,通过 [开始 → Hello, world](../gettingstarted/hello-world.md) 来学习创建你的第一个应用。
|
||||
在你安装完 Swift 之后,通过 [开始 → Hello, world](../getting-started/hello-world.md) 来学习创建你的第一个应用。
|
||||
|
|
|
|||
|
|
@ -29,4 +29,4 @@ brew install vapor
|
|||
|
||||
##
|
||||
|
||||
Nach den Installationen kannst du mit der Erstellung deiner ersten Vapor-Anwendung beginnen. Folge dazu den Anweisungen im Abschnitt [Erste Schritte → Hello, world](../gettingstarted/hello-world.de.md).
|
||||
Nach den Installationen kannst du mit der Erstellung deiner ersten Vapor-Anwendung beginnen. Folge dazu den Anweisungen im Abschnitt [Erste Schritte → Hello, world](../getting-started/hello-world.de.md).
|
||||
|
|
|
|||
|
|
@ -45,4 +45,4 @@ You should see a list of available commands.
|
|||
|
||||
## Next
|
||||
|
||||
Now that you have installed Swift and Vapor Toolbox, create your first app in [Getting Started → Hello, world](../gettingstarted/hello-world.md).
|
||||
Now that you have installed Swift and Vapor Toolbox, create your first app in [Getting Started → Hello, world](../getting-started/hello-world.md).
|
||||
|
|
|
|||
|
|
@ -45,4 +45,4 @@ vapor --help
|
|||
|
||||
## 下一步
|
||||
|
||||
现在你已经安装了 Swift and Vapor Toolbox,在 [开始 → 你好,世界](../gettingstarted/hello-world.md) 中创建你的第一个 Vapor 应用程序。
|
||||
现在你已经安装了 Swift and Vapor Toolbox,在 [开始 → 你好,世界](../getting-started/hello-world.md) 中创建你的第一个 Vapor 应用程序。
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ let package = Package(
|
|||
|
||||
## Configure
|
||||
|
||||
Once you have added the package to your project, you can configure Vapor to use it. This is usually done in [`configure.swift`](../gettingstarted/folder-structure.md#configureswift).
|
||||
Once you have added the package to your project, you can configure Vapor to use it. This is usually done in [`configure.swift`](../getting-started/folder-structure.md#configureswift).
|
||||
|
||||
```swift
|
||||
import Leaf
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ This library is an integration between Vapor and [**RediStack**](https://gitlab.
|
|||
|
||||
The first step to using Redis is adding it as a dependency to your project in your Swift package manifest.
|
||||
|
||||
> This example is for an existing package. For help on starting a new project, see the main [Getting Started](../gettingstarted/hello-world.md) guide.
|
||||
> This example is for an existing package. For help on starting a new project, see the main [Getting Started](../getting-started/hello-world.md) guide.
|
||||
|
||||
```swift
|
||||
dependencies: [
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ JSON Web Token (JWT) is an open standard ([RFC 7519](https://tools.ietf.org/html
|
|||
|
||||
## Getting Started
|
||||
|
||||
The first step to using JWT is adding the dependency to your [Package.swift](../gettingstarted/spm.md#package-manifest).
|
||||
The first step to using JWT is adding the dependency to your [Package.swift](../getting-started/spm.md#package-manifest).
|
||||
|
||||
```swift
|
||||
// swift-tools-version:5.2
|
||||
|
|
|
|||
|
|
@ -158,10 +158,10 @@ nav:
|
|||
- macOS: "install/macos.md"
|
||||
- Linux: "install/linux.md"
|
||||
- Getting Started:
|
||||
- Hello, world: "gettingstarted/hello-world.md"
|
||||
- Folder Structure: "gettingstarted/folder-structure.md"
|
||||
- SPM: "gettingstarted/spm.md"
|
||||
- Xcode: "gettingstarted/xcode.md"
|
||||
- Hello, world: "getting-started/hello-world.md"
|
||||
- Folder Structure: "getting-started/folder-structure.md"
|
||||
- SPM: "getting-started/spm.md"
|
||||
- Xcode: "getting-started/xcode.md"
|
||||
- Basics:
|
||||
- Routing: "basics/routing.md"
|
||||
# TODO: Improve quality
|
||||
|
|
|
|||
Loading…
Reference in New Issue