November 2018
Intermediate to advanced
404 pages
10h 16m
English
In the default template, Vapor creates three build targets for you. Each target declares which modules it depends on. For example, the App target depends on Fluent SQLite and Vapor. One target can also depend on another target. For example, the Run target depends on the App target.
Vapor separates the App module from the helloWorld executable module. By doing so, the App module can be included in the AppTest module for testing.
The Swift package describe command lists the three modules in the boilerplate:
# List of modules in a Vapor boilerplate projectName: helloWorldPath: /Users/fyeung1/Downloads/Packt/ch3/vapor/helloWorldModules: Name: App C99name: App Type: library Module type: SwiftTarget Path: /Users/Packt/ch3/vapor/helloWorld/Sources/App ...Read now
Unlock full access