In the preceding chapter, we jumped back to iOS and refactored our app so that we can use our Vapor API server to load, create, update, and delete Shopping Lists and items. Now, in this chapter, we will discuss how to make our Vapor application into a web application that can also serve HTML pages. As we have seen before in Chapter 3, Getting Started with Vapor, building web servers using Vapor is easy, and we can dynamically generate HTML based on the request we receive. We used Vapor only to serve API requests, but, in this chapter, we will extend our Vapor application so that it can server web content that can be rendered on the browser. Just like native mobile applications, the web is another platform where we can use server-side Swift and Vapor to be able to serve our Shopping List application for users to consume.
In this chapter, we...