go-pocketbase-htmx-templ-tailwind

command module
v0.0.0-...-f5c700e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

README

go-pocketbase-htmx-templ-tailwind

go pocketbase htmx templ tailwind template

Prereqs

  1. install golang 1.21
  2. install tailwind cli: https://tailwindcss.com/blog/standalone-cli
  3. install templ: go install github.com/a-h/templ/cmd/templ@latest
  4. install air: go install github.com/cosmtrek/air@latest
  5. run go get

To Develop

  1. air // watches for file changes and generates template files and builds css changes

To Build for Production

  1. templ generate && ./tailwindcss -i tailwind.css -o ./public/css/tailwind.css && go build -o ./main .
  2. copy public folder and main binary to a server
  3. expose port 8080 via systemd or reverse proxy (see pocketbase setup guide)
  4. run main serve --http=0.0.0.0:8080

To Build for Production (Docker)

  1. docker build .
  2. docker run -p 8080:8080

save these urls:

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL