Navidrome UI with HATEOAS, go, templ, htmx, hyperscript
docker | ||
public | ||
src | ||
.air.toml | ||
.env.example | ||
.gitignore | ||
go.mod | ||
go.sum | ||
Jenkinsfile | ||
main.go | ||
package.json | ||
pnpm-lock.yaml | ||
README.md | ||
tailwind.config.cjs |
Go fullstack template
Installation & Set Up
- Install the Go Programming Language
- Install Air by running:
go install github.com/air-verse/air@latest
- Install Templ by running:
go install github.com/a-h/templ/cmd/templ@latest
- Install Node.js
- Install Go deps with
go mod tidy
- Install Node deps with
npm install
VSCode setup
To best use this template install Go & Templ LSPs:
Neovim setup
You can install gopls
and templ
with Mason.
Running
Just run:
npm run dev
This will start 3 processes:
- Tailwind watch
- Air
- Templ watch
Building
Compile the Go binary:
go build main.go
And ship it along the public
folder