go-templ-htmx-template

command module
v0.0.0-...-ac0b3eb Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 2 Imported by: 0

README

Go Templ HTMX Template

A streamlined Go-based template integrating Echo, Templ, HTMX, SQLC, Tailwind CSS, and Alpine.js, designed for rapid development of web applications. This template serves as a foundation for full-stack development, incorporating best practices for clean architecture, security, and performance.

Quick Start

Clone and Install:

git clone github.com/HoneySinghDev/go-templ-htmx-template.git
cd go-templ-htmx-template
task install

Launch Development Server:

task dev

Configuration

Environment Variables:

Create a .env file based on .env.example. Adjust database and Supabase settings to match your local or production environments.

PKL Configuration:

Settings are in pkl/app.config, with environment-specific configurations in pkl/local and pkl/prod.

Building for Production

task build

Compiles Go binary and frontend assets. Deploy bin/app to your server.

Features

  • Echo Framework: Robust foundation for web server operations.

  • Templ Templating: Type-safe, JSX-inspired templating for Go, enhancing server-side rendering.

  • HTMX: Dynamic HTML content updates without full page reloads.

  • SQLC: Type-safe SQL queries with automated code generation.

  • Tailwind CSS: Utility-first styling for rapid UI development.

  • Alpine.js: Lightweight JavaScript for enhanced interactivity.

  • Trying Experimental NilAway: A tool to help you avoid nil pointer dereferencing in Go. Check

Contributing

Contributions are welcome. Fork this repository, make your changes, and submit a pull request.

License

MIT License. See LICENSE for more details.


Simplify your Go web development with this template, crafted for developers by developers.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
db
pkg
sb
pkl
pklgen
Code generated from Pkl module `appConfig.pkl`.
Code generated from Pkl module `appConfig.pkl`.
pklgen/environment
Code generated from Pkl module `appConfig.pkl`.
Code generated from Pkl module `appConfig.pkl`.
pklgen/loggerlevel
Code generated from Pkl module `appConfig.pkl`.
Code generated from Pkl module `appConfig.pkl`.
templ: version: v0.2.663
templ: version: v0.2.663
auth
templ: version: v0.2.663
templ: version: v0.2.663
components
templ: version: v0.2.663
templ: version: v0.2.663
dashboard
templ: version: v0.2.663
templ: version: v0.2.663
layout
templ: version: v0.2.663
templ: version: v0.2.663
partials
templ: version: v0.2.663
templ: version: v0.2.663
site
templ: version: v0.2.663
templ: version: v0.2.663

Jump to

Keyboard shortcuts

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