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 ...
Get Level Up Your Web Apps With Go now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.