htmx-hyperscript-starter

command module
v0.0.0-...-80b3821 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 8 Imported by: 0

README

htmx-hyperscript-starter

A full stack starter go project using HTMX + Hyperscript + Pico.css with browser hot reloading and live reloading

Quick Start

Assuming you have go and gow installed you can simply do the following:

  • Click 'Use this template' button above or click here
  • Clone your repo
  • Run ./dev.sh

Preview

Boilerplate

Options

  • --port: specficy the port to run on

Motivation

There are quite a hodge podge of starter templates for the HTMX stack however most of them were very opinionated on frontend frameworks and many even leveraged the npm eco system which felt yucky to me.

Dependencies

  • Go
  • Gow (for live reload of .go code, browser code will still hot reload without gow)
  • aarol/reload for hot reload of the web browser

Optional Dependencies

  • Pico.css - put whatever css framework you would like in the index.html head

Roadmap

  • ✅ Add api boilerplate for backend API
  • ⬜ Add simple authentication flow
Repo

Source of truth for myself is on my sr.ht repo but I keep this up to date for the templating in Github

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL