This is a skeleton app using Go/Echo/Templ/sqlx in the backend and HTMX/AlpineJS/Tailwind/Vite in the frontend.
go mod tidy
to download the dependencies.pnpm install
to download the client dependencies.pnpm run build
to build the client bundle.go run cmd/server/main.go
to start the server.gomon
to start the server and have it automatically restart when you make changes.client
folder containing all of the client dependencies. The client bundle is built using Vite and copied to the static/dist
folder along with any other dependencies (e.g. fonts). The contents of this folder are server statically by the Go server using the /assets
path. To build the client run pnpm run build
in the client folder. To watch for changes run pnpm run build:watch
.MIT. Have at it.