Thg is a lighweight template for spinning up websites using Tailwind CSS, HTML, Golang, and Chi for routing.
- Live reloading on save using Air
- Templates through native Golang text/template package
- Reusable components
Clone repo
git clone https://github.com/pisgahi/thg.git
cd thgPrerequisites
- Install Tailwind CSS (preferably the standalone CLI).
- Create a
.envfile and add the following.PORT=8080is just an example port:
PORT=8080- Begin Tailwind file watching and generate the static CSS file
make wind- In another terminal session start Air for live reloading
make air- Run the final product
make run- Build the final executable
make build