Building a web application is easier to understand when you can see how the pieces work together. In Let’s Go, Alex Edwards guides readers through creating Snippetbox, a Go application for saving and sharing text snippets, and uses that project to teach the practical decisions behind web development.
This second edition moves from the foundations of an HTTP application to databases, forms, security, authentication, and testing. The emphasis is on learning by building: each new concept has a place in the application rather than appearing as a disconnected example.
Build a working application, one layer at a time
The early chapters introduce project setup, Go modules, routing, HTTP headers, templates, static files, configuration, logging, and error handling. From there, the project gains a MySQL database, dynamic pages, form validation, and middleware. This progression helps readers see how choices in one part of a codebase connect to the rest.
Sessions, security, and user accounts
As Snippetbox develops, the book explores session management, HTTPS, connection timeouts, user signup and login, password encryption, authorization, and CSRF protection. These topics bring attention to the responsibilities involved in building an application that handles user accounts—not just serving a page.
Make testing part of the build
Testing receives its own substantial section, covering unit tests, HTTP handlers and middleware, end-to-end and integration testing, mocked dependencies, form tests, and test coverage. The contents also include guided exercises that extend the application, including adding pages and account features.
Who will find it useful?
The book is aimed at readers learning to build web applications with Go. It assumes basic HTML, CSS, SQL, and command-line familiarity, along with some knowledge of Go syntax. Developers who have built web applications in another language may recognize familiar problems while learning how Edwards approaches them in Go.
Bring a text editor and follow the Snippetbox build as it grows from a simple page into a database-backed application with user accounts. For readers who learn best by making the parts work together, this is a practical route into Go web development. 💻
User Reviews
Only logged in customers who have purchased this product may leave a review.
Original price was: $5.00.$2.50Current price is: $2.50.

There are no reviews yet.