Chapter 5Gophr Part 2: All About the Users
In this chapter we’re going to continue developing our new web app,
Gophr. In the last chapter we set up the skeleton of our project, the folder
structure, templates, assets, and middleware. Now we can attack the
interesting stuff: how to handle users. As part of this we’ll cover what our
users look like, including generating unique IDs. We’ll look at how
to store user passwords and how to create a UserStore
interface to both save and search for users.
This may sound like a small amount to be covering, but it isn’t as simple as it sounds. There are a few complexities to setting up a good system, such as how we store and authenticate passwords, so to start off we’ll stick to creating a simplified user ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access