An experiment in htmx and templ.
When making changes that generate code, it can help to run go get -u ./...
to make sure deps of installed code are present.
Html templating defined in .templ
files of the www
directory.
templ generate
Database models, added with and managed by the ent ORM.
Add models to the schema with go run -mod=mod entgo.io/ent/cmd/ent new ModelTypeName
.
After updating the schema (fields, edges), run go generate ./ent
.
./dan2 serve
- https://pkg.go.dev/google.golang.org/[email protected]/credentials#AuthInfo
- https://github.com/johanbrandhorst/grpc-auth-example