This year at iOSDevUK, I gave a talk on using Swift on the Server with Vapor to build an app’s backend in Swift.
You can download the slides here.
This post contains some links to additional resources.
The Basics
-
Vapor is the Swift framework used in the projects mentioned.
-
Photo Scout is the app used in most of the examples.
Technical
-
When deploying a Swift/Vapor app to Heroku, you’ll need to use the Vapor Heroku Buildpack.
-
Vapor is built upon SwiftNIO.
-
We’re all very much looking forward to the unified Foundation project coming to fruition. More details here, with the GitHub repo here.
-
For sending metrics to Datadog from your project, you’ll need the dogstatsd SPM package, and for Heroku the Datadog Heroku buildpack to get the required local agent.