Categorygithub.com/johan-st/jst.dev
modulepackage
0.0.0-20240411190755-9c2886573a03
Repository: https://github.com/johan-st/jst.dev.git
Documentation: pkg.go.dev

# 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

# Packages

templ: version: v0.2.663.

# Functions

No description provided by the author

# Constants

No description provided by the author