Hands-On Server-Side Web Development with Swift
上QQ阅读APP看书,第一时间看更新

Building the hello world app

Your helloWorld Vapor app is already functional.

Enter the project directory and type in the vapor build command to build the helloWorld app:

# Step 2: Build the current project
cd helloWorld
vapor build

The first command, cd is to change the current directory to the helloWorld directory. The second command tells Vapor to start fetching and installing all the dependencies and then building the project itself.

The building process may take a few minutes:

No .build folder, fetch may take a while...
Fetching Dependencies [Done]
Building Project [Done]

Since you are building the application for the first time, the Swift compiler will create the .build folder in your current directory to store all installed dependencies, temporary files, and executables.