Htmx_go_tailwind_starter screenshot

Htmx_go_tailwind_starter

Author Avatar Theme by Claidler
Updated: 19 Sep 2023
155 Stars

A starter project using HTMX Golang and Tailwindcss with hot reloading

Overview:

This application is a fullstack Go application with HTMX and Tailwind CSS. It features hot-reloading for changes in HTML and CSS files. The Go server files are compiled into a single distributable file stored in /tmp/main, while HTML and CSS files are built into ./public/**/*.

Features:

  • Fullstack Go Application: Utilizes the Go programming language for both front-end and back-end development.
  • HTMX Integration: Incorporates HTMX library for seamless communication between the client and server.
  • Tailwind CSS Styling: Uses Tailwind CSS for styling the application with utility-first classes.
  • Hot Reloading: Supports automatic reloading of the server when HTML or CSS files are changed.

Installation:

  1. Install Go: Follow the official Go website instructions to install Go on your machine.
  2. Install Air: Use the command line to install Air, a live-reloading utility for Go applications during development.
    $ go get -u github.com/cosmtrek/air
    
  3. Install NPM Dependencies: Ensure NPM dependencies are installed.

Summary:

This fullstack Go application with HTMX and Tailwind CSS provides developers with a robust environment for building web applications. By leveraging hot-reloading functionality and streamlined development tools, the application aims to enhance the development process and improve efficiency.