This is a starter project for Go and htmx. It supports hot-reloading for Go, HTML, CSS and Javascript files. It also bundles js files.
This project makes use of ParcelJS and Air for hot-reload and module-bundles. Please install them as per the instructions given on their page.
Clone this repo on your local machine.
Run "yarn install" to install dependencies.
Run "yarn watch" to watch changes in JS and CSS files.
Run "air" command in a separate terminal to watch changes in Go files.
Now, website should be running live at "https://localhost:3000".