Go & HTMX is the simplicity I miss - Golang Tutorial

preview_player
Показать описание
In this video, we explore how to build a dynamic, SPA-like website using Go and HTMX, perfect for developers tired of complex JavaScript libraries. We'll create a simple HTTP server in Go, render HTML, and fetch data from the PokeAPI to display Pokémon cards. You'll learn how to handle user input with basic HTML forms and make seamless updates using HTMX. This tutorial is ideal for those looking to simplify their development process while maintaining a high-quality user experience. For detailed code and explanations, check out the blog post linked below. Let's dive in!

Timestamps:
0:00 - Introduction
01:00 - Simple server in Golang
01:48 - Rendering HTML from server
02:59 - Adding static card to index html
03:55 - Fetching Pokemon details
05:26 - Making the card dynamic
07:50 - Adding form to accept user input
08:54 - Adding a post endpoint to handle user submission
11:43 - Using HTMX to render response
14:15 - Adding a form in response
15:13 - Final result
15:50 - Outro

Tools I use:
- Helix Editor
- Zellij terminal mux
- Kitty terminal
- Catpuccin Mocha everywhere
- Mac mini M2
======================================
#golang #go-tutorial #leangolang #google #programming #web

Рекомендации по теме
Комментарии
Автор

You can follow along the code and get more details on the blog

MightyMoud
Автор

Video, blog, and source are very much appreciated. Great starting point for me to dive in head first.

Deploy-Destroy
Автор

I don't get how this doesn't have more views, I know this is very simple yet this is very simple short and sweet. Nice video! Hopefully we see a more involved Go & Htmx app in the future with db and all the bells and whistles! 😃

arturfil