Giter Site home page Giter Site logo

go-templ-htmx-template's Introduction

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.

go-templ-htmx-template's People

Contributors

honeysinghdev avatar jaskaur18 avatar

Stargazers

Sevdalin Sabev avatar  avatar  avatar  avatar Steven Almeroth avatar Dmitry Maykov avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.