This topic in the appendix will give you a clear understanding the boilerplate code in Vapor. Carrying forward from where we left off in Chapter 3, Building Your First Web App, here is a summary of the steps that you've used in creating a helloWorld boilerplate project using Vapor's default template:
$ vapor new helloWorld
$ cd helloWorld
$ vapor build
$ vapor xcode
$ open hellowWorld.xcodeproj
After executing the preceding commands in the Terminal, you changed Xcode project's scheme to Run and device to My Mac. The helloWorld server will be running at http://localhost:8080 when you use command + R to run your project.
The following sections will provide you with a better idea regarding the same:
- Reviewing Vapor-generated files
- Understanding the source code files
- Configuring Swift Package Manager
- Starting with entry point
- Instantiating...