Go, Alpine.js & HTMX - Building a Small Todo App ( Golang )

BugBytes
BugBytes
7 هزار بار بازدید - 4 ماه پیش - In this video we'll build
In this video we'll build a small todo app using Go, HTMX and Alpine.js

We'll show how to convert backend data for use in an Alpine component on the client, and will use HTMX to build a small piece of interactivity into the app.

Playlist ▶️: Go Programming

☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
https://ko-fi.com/bugbytes

📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
04:22 Return JSON data to Go template
06:07 Creating Alpine component with data
11:42 Add todo form
13:44 Adding handler for form submission
16:32 Returning HTML fragment after form submission
19:49 Adding HTMX to project

𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📖 Blog: https://bugbytes.io/posts/
👾 Github: https://github.com/bugbytes-io
🐦 Twitter: Twitter: bugbytesio

📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
Go html/template package: https://pkg.go.dev/html/template
HTMX: https://htmx.org/docs/#installing
Alpine.js: https://alpinejs.dev/

#golang #webdevelopment #htmx
4 ماه پیش در تاریخ 1402/12/29 منتشر شده است.
7,067 بـار بازدید شده
... بیشتر