We need our web application to be fast and easy to modify. We'll integrate one of the most popular and most powerful HTTP routers in golang to make our server more robust.
- [Instructor] Hi and welcome.…In our last videos we added features for displaying…and removing books from our library.…As we've been adding more functionality to our…web application, building route handlers…has become cumbersome.…There are many available http routers in…the go ecosystem.…In this video we'll take one of the most popular…and most powerful third-party routers and…integrate it into our application.…We'll start by installing an http router…called gorilla/mux.…Then we'll replace our usage of the built in…serve mux with gorilla/mux.…
Finally, we'll use some of gorilla/mux's…features to improve our add and delete book routes.…We've been using the default serve mux from…the standard library to do all of our http routing.…It works well, but there are many options available,…which provide faster routing and more features.…This is a short list of some of the most…popular routers available.…Gorilla/mux is one of the most full featured…third-party routers available and is also…one of the most popular routers.…
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