Package dependencies

Vapor Toolbox adds two package dependencies, Vapor and Fluent SQLite, automatically into the project created with the default template.

You can add as many package dependencies as you need by appending the new package to the dependencies array. However, you have to use the Vapor update command to fetch the package and effect the changes if you have modified a package or added a new package to the dependency list.

If you run the swift package show-dependencies command on your Terminal, you can see that Vapor and Fluent SQLite have a long list of dependencies:

Here is # List of package dependencies in a Vapor boilerplate project:
.
├── Vapor<https://github.com/vapor/vapor.git@3.0.1>
│ ├── Console<https://github.com

Get Hands-On Server-Side Web Development with Swift now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.