Good job if you have made it this far. You used Swift not only to build an iOS app, but also a full stack web application, and you also set up tests and an automated deployment pipeline for your app, so that you can develop and deploy code with ease. Now, in this chapter, you will finish off your Shopping List app by adding the concept of users to your app and associating Shopping Lists with a specific user.
Currently, our app does not support multiple user accounts. We show all of the Shopping Lists to anyone who opens the app or goes to the web app. There is no concept of users creating their own Shopping List and being able to get only their Shopping List. We will be changing that in this chapter, and to do so, we will need to add a User model. We will also need to create a way for users to register and authenticate themselves to log in. Then, every time a user creates a Shopping List, it will be associated with the user who created it. This is similar...