A library should support multiple users using the system. We need a method to identify each user. We'll build a basic login UI to allow authentication with the library application.
- [Instructor] Hi and welcome to Section 5…Different Folks, Different Libraries.…During Section 4, we integrated a third-party…database wrapper into our server…and we built database calls to sort and filter…our book collection.…In Section 5, we are going to start thinking about…a multiple-user system, including individual…book collections and authentication.…We'll start this section by creating…a UI Elements necessary for a user to…authenticate with our application.…Next we utilize a modern cryptography library…to securely create and store users…in our database.…
We'll verify the users identity by writing…a custom middleware to check a session variable.…Finally, we'll update the database to allow…each user to maintain an independent library.…In this video, we'll design and build a new page…for our application to manage authentication…of existing users and registration of new users.…We'll start by building a template…for registration and login.…Next, we'll work on the route handler…to show the user the login page.…
Go is on the rise. This open-source programming language (created by Google!) comes with a strong and accessible standard library, and provides a growing ecosystem of tools, libraries, and frameworks that can help you build web applications fast. Go for Web Development gets you started with the language, opening with the classic "Hello world" exercise and culminating in a web application with a strongly designed database back end, useful middleware, UI with an intelligent search function, multi-user authentication, and more.
First, learn how to build a web server with Go's extensive standard library. Explore the concepts behind a single-page web application and learn how to create a dynamic user interface, manipulate a database, and use powerful encryption algorithms to implement an authentication system. Next, you'll incorporate more functionality by calling out to external libraries from the database. Finally, it all comes together into an optimized package you can deploy into the wild with Heroku.
- Creating a route in Go
- Using templates
- Building database connections
- Collecting data
- Using web middleware
- Using the Ace template engine
- Integrating HTTP routers like gorilla/mux
- Authenticating users
- Optimizing a Go codebase