O'Reilly logo

Swift Functional Programming - Second Edition by Dr. Fatih Nayebi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

SPM

SPM is an open source build and dependency management tool provided for Swift 3.0. It is integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.

Vapor uses SPM; to create a Vapor project we need to add the following dependency to the Packages.swift file:

Package(url: "https://github.com/qutheory/vapor.git", majorVersion: xx, minor: x) 

As stated in the Vapor section, we can use Vapor CLI tools to build and run the application with SPM.

We recommend you to read more about Vapor and SPM since we do not cover most related topics in this book. In the following section, we will develop a very simple backend with Vapor.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required