Golang + HTMX Project Structure | How I’ve Structured My HTMX Go App

preview_player
Показать описание

In this video, I review the structure of a Golang + HTMX web application. I discuss how I've set up my HTML template files to best use HTMX and the Go templating engine. I cover how you can set up routes for HTMX so that you only render partials within specific routes.

On top of templating, I also cover the use of Hexagonal Architecture, so that your core business logic is away from the UI and the API endpoints.

Overall this video should give you a pretty good idea as to how you can structure your Golang application for HTMX and a frontend.

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

🚨Taking video idea suggestions! 🚨

Please reply to this comment if you have any suggestions of HTMX / Go content in general ~ thanks in advance!

samvcodes
Автор

I'm a simple man, I see HTMX and I click subscribe.

Felixls
Автор

@samvcodes what do you think about templ template library?

ccoreycole
Автор

kindly createa a video on how to config templ with fiber

patrick_kabwe
Автор

Good content❤ subscribed
Hey I want to work on a multiplayer typing race game so I am lost on choosing tech stack for the project in the end I have chosen
golang for backend and for frontend next.js with typescript and maybe redux

Is it right choice or should I choose another tech for frontend I also considered htmx but is it bad for seo? also please give me some context about golang what should I use for server or any other best pkgs for golang you can suggest as I am node.js developer I don't about golang but I decided work on it

hiranizamani
Автор

@samvcodes I've got a question.
I see you have the 'node_modules' directory under api/web/ as well as tailwind.config.js etc.
The question is, if you run e.g. npm install <package> that will by default look at your project root (at least for me), so do you cd into the api/web everytime you need to run e.g npm install?

leandergangs
Автор

Seeing node_modules in a Go application is weird, but that's just the "reactivity" brainwash in my head.

geoblk
Автор

Can you please do a full tutorial on how to build stuff with Go for beginners. I check the videos on your channel and all code has been written and there is no way for a beginner to follow. If you can do this, I do appreciate. I want to learn code.

devolajide
welcome to shbcf.ru