go pocketbase htmx templ tailwind template
- install golang 1.21
- install tailwind cli:
https://tailwindcss.com/blog/standalone-cli - install templ:
go install github.com/a-h/templ/cmd/templ@latest - install air:
go install github.com/cosmtrek/air@latest - run
go get
air// watches for file changes and generates template files and builds css changes
templ generate && ./tailwindcss -i tailwind.css -o ./public/css/tailwind.css && go build -o ./main .- copy
publicfolder andmainbinary to a server - expose port 8080 via systemd or reverse proxy (see pocketbase setup guide)
- run
main serve --http=0.0.0.0:8080
docker build .docker run -p 8080:8080
save these urls: