Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```