Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hrz8/gohx-template
Simple Template for Fullstack Web App using Go+HTMX+templ with SPA-like router
https://github.com/hrz8/gohx-template
bulma fullstack golang htmx spa templ
Last synced: 22 days ago
JSON representation
Simple Template for Fullstack Web App using Go+HTMX+templ with SPA-like router
- Host: GitHub
- URL: https://github.com/hrz8/gohx-template
- Owner: hrz8
- Created: 2024-03-26T01:43:54.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-03-27T04:47:49.000Z (9 months ago)
- Last Synced: 2024-05-29T00:21:36.813Z (7 months ago)
- Topics: bulma, fullstack, golang, htmx, spa, templ
- Language: Go
- Homepage:
- Size: 59.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gohx
Just a template for Fullstack Web App using `Golang` + `htmx` + `templ` with SPA-like router.
## Tools
```bash
# Install sqlc
go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest
# Install templ
go install github.com/a-h/templ/cmd/templ@latest
# Install task
go install github.com/go-task/task/v3/cmd/task@latest
# Install air
go install github.com/cosmtrek/air@latest
```## Setup
### Install deps
```bash
go mod tidy
yarn install
```### Build templ
```bash
templ generate
```### Build assets
```bash
node esbuild.mjs
```## Dev
```bash
task watch
task watch:fe
```