Go & HTMX is the simplicity I miss - Golang Tutorial
Mahmoud - MightyTuts Mahmoud - MightyTuts
4.32K subscribers
951 views
41

 Published On Aug 17, 2024

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!

Blog Post: https://mightytuts.com/blog/golang-ht...

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

🌐 www.rovn.ai
🌐 www.mightytuts.com
𝒳   / mightymoud  
🧑🏼‍💻 Github https://github.com/mightymoud

show more

Share/Embed