HTMX-GO is a web application project that demonstrates the integration of Go (using Echo framework), HTMX, and Tailwind CSS. The project showcases the seamless integration of htmx capabilities for dynamic client-server communication while leveraging the power of Go templates for server-side rendering.
- Go Echo: A fast and minimalist Go web framework.
- HTMX: A lightweight JavaScript library for making AJAX-driven websites easy to create.
- Tailwind CSS: A utility-first CSS framework for rapidly building custom designs.
- DaisyUI: A UI library for Tailwind CSS, extending its capabilities with additional components and utilities.
- Air: A live reload tool for Go applications.
-
Go: Ensure that Go is installed on your machine.
-
Node.js: Required for managing the frontend dependencies.
-
Tailwind CSS CLI: Install Tailwind CSS CLI for building styles.
-
Air: Install Air for live reloading Go applications. You can install it using:
go get -u github.com/cosmtrek/air
-
Clone the repository:
git clone https://gitlab.com/your-username/htmx-go.git cd htmx-go
-
Install Go dependencies:
go mod tidy
-
Run the application with Air:
air
Air will handle live reloading as you make changes to your Go code.