pocket-htmx

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

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

Go to latest
Published: Jul 3, 2024 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

pocket-htmx

golang 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