We'll get started by building a Go web application, which can be overwhelming. Let's focus on using a standard library to create our first route. We'll have a working web application by the end of this video.
- [Voiceover] Hi, and welcome to the first section.…Despite its age, the Go community is thriving,…and there are many options for getting started…developing a new web application in Go.…I love books, and I keep a lot of books around the house.…Unfortunately, I have a tough time deciding…where on the shelf each of my books should live.…Let's build a personal library app to keep track of books…and put them in an appropriate order.…In this section, we'll set up a bare-bones web application…to prepare for our library app.…We'll start small with a single route.…
Then we'll use a display template…to serve mark-up from our web application.…Since we'll want to keep track of our books,…we'll finish this section…by setting up a database connection.…In this video, we'll start with a completely blank slate,…and we'll end with a simple but functional web server.…It's tempting to get bogged down…in selecting third-party libraries…for creating servers, multiplexing routes,…and integrating middleware.…For this video, and this entire series,…
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