Jump to ratings and reviews
Rate this book

Server Side Swift with Vapor: Building Web APIs and Web Apps in Swift

Rate this book
Learn how to use Swift on the server!

Server Side Swift with Vapor introduces you to the world of server development with the added bonus of using Swift. You'll learn how to build APIs, web sites, databases, application servers and use Vapor's very own Vapor Cloud to host your solutions off-site. You'll use many of Vapor's modules such as Fluent, Vapor's ORM, and Leaf, the templating engine for building web pages.

Who This Book Is For

This book is for iOS developers who already know the basics of iOS and Swift development and want to transfer that knowledge to writing server based applications.

Topics Covered in Server Side Swift with Vapor


HTTP Learn the basics of how to make requests to and from servers.
Fluent Learn how to use Fluent to save and manage your models in databases.
Controllers Learn how to use controllers to route your requests and responses.
Leaf Learn how Vapor's Leaf module and its templating language allow you to build dynamic web sites directly.
Middleware Learn how built-in Vapor modules can assist with common tasks such as validating users, settings required response headers, serving static files and more. One thing you can count on: After reading this book, you'll be prepared to write your own server-side applications using Vapor and, of course, Swift.

632 pages, ebook

Published February 25, 2019

3 people are currently reading
13 people want to read

About the author

Ray Wenderlich

99 books18 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
6 (46%)
4 stars
6 (46%)
3 stars
1 (7%)
2 stars
0 (0%)
1 star
0 (0%)
Displaying 1 - 3 of 3 reviews
6 reviews
February 22, 2022
This book is just fantastic for every Swift Developer that wants to understand how vapor works and to have a good overview of all the tools it has.
It's pretty common for iOS developers to be proficient with Swift, but they may have problems with backend-related or web-related topics. For them, this book covers basic topics (like what is and how to work with HTTP) to more advanced topics (horizontal scaling, caches, using containers, API & database versioning, etc) and how to implement them.
I'd totally recommend this for somebody who has no knowledge of backend or somebody who wants to learn about the vapor framework and its tools. It's important to have a good understanding of Swift, and some of the "newer" topics, like KeyPaths, PropertyWrapper, etc.

The only thing that this book doesn't cover is the usage of (the new) async / await API and uses the previous way to deal with async: Futures. However, this is a minor issue as migrating from one to another is easy.
3 reviews
October 22, 2018
A very good book for someone who knows Swift and wants to try writing server side code. My only real issue is that this books is more like a collection of tutorials on how to do things with Vapor, and lacks more general introduction to server-side architecture, which I, as a pure front-end developer, would greatly appreciate. So, it's good if you want to quickly learn how to do stuff; it's not so good if you want a deep dive into ins and outs of server-side development.
Profile Image for Davuth.
75 reviews4 followers
July 1, 2019
I'm a beginner when it comes to backend dev in general, and this is a pretty good book to start with.
Displaying 1 - 3 of 3 reviews

Can't find what you're looking for?

Get help and learn more about the design.