jst.dev

command module
v0.0.0-...-9c28865 Latest Latest
Warning

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

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

README

Internal web

Dev

# install templ
go install github.com/a-h/templ/cmd/templ@latest

# generate templ files (requires templ)
templ generate -watch -path pages

# live reload (air)
air
# run for dev
go run . -debug -dev

# run as in production
go run .

Build

# build for local environment
go build -o dpj-web . 
GOOS=linux GOARCH=amd64 go build -o build/dpj_linux && \
GOOS=darwin GOARCH=amd64 go build -o build/dpj_macos && \
GOOS=windows GOARCH=amd64 go build -o build/dpj_win.exe && echo "done"

Prequisites

Running
  • open-ai api key at OPENAI_API_KEY
Development
  • open-ai api key at OPENAI_API_KEY
  • templ for generating templates
  • anko for live reloading (optional)

Philosophy

  • I am embedding all files needed for operation into a single binary. (This is done with the go:embed directive.)
  • I'm trying to keep the code fairly

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
templ: version: v0.2.663
templ: version: v0.2.663

Jump to

Keyboard shortcuts

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