Skip to content

CoreyCole/go_webserver

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published