Skip to content

Latest commit

 

History

History
63 lines (42 loc) · 1.01 KB

readme.md

File metadata and controls

63 lines (42 loc) · 1.01 KB

go webserver

htmx + templ templates for HATEOAS

react components for islands of interactivity

  • Add react components to react/components directory
  • build with make

render markdown with code highlighting

  • Add markdown files to the public/md/ directory.
  • Demo at coreycc.com

host bevy web assembly games

  • Add bevy wasm bundled with trunk to the public/games directory

Install dependencies.

make install

Run the server.

make run

Watch for local file changes.

make watch

Run all Tests

go test ./...

Build binary

go build -o bin/go_webserver main.go

Systemd setup

# copy systemd config (assumes pwd /home/ubuntu/go_webserver)
cp go_webserver.service /etc/systemd/system/go_webserver.service

# activate service
systemctl daemon-reload
service go_webserver start
service go_webserver status