A simple authentication example built with Go, Gorilla Toolkit, PostgreSQL, HTMX, and Tailwind CSS.
mux
, securecookie
, csrf
, etc.)git clone https://github.com/Abhishek2010dev/Go-Htmx-Auth-Example.git
cd Go-Htmx-Auth-Example
โ Set up your PostgreSQL database and update connection settings if needed inside the project.
Before running the app, build the Tailwind CSS output:
npx @tailwindcss/cli -i ./style/input.css -o ./static/css/output.css
go run cmd/api/main.go
The server will start and listen on localhost:4000 by default. ๐
cmd/api/ โ main Go application
internal/ โ handlers, models, utilities
migrations/ โ database migration scripts
style/ โ TailwindCSS input file
static/css/ โ output CSS file
templates/ โ HTML templates (with HTMX)
Thanks to the awesome tools:
This project is licensed under the MIT License. โ