{"id":20309905,"url":"https://github.com/connorrmcd6/goth_template","last_synced_at":"2026-06-17T21:03:01.819Z","repository":{"id":253731026,"uuid":"844171325","full_name":"Connorrmcd6/goth_template","owner":"Connorrmcd6","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-19T04:31:23.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-14T11:58:33.576Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Connorrmcd6.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-18T15:44:16.000Z","updated_at":"2024-08-19T04:31:26.000Z","dependencies_parsed_at":"2024-08-19T05:51:50.418Z","dependency_job_id":null,"html_url":"https://github.com/Connorrmcd6/goth_template","commit_stats":null,"previous_names":["connorrmcd6/goth_template"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Connorrmcd6%2Fgoth_template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Connorrmcd6%2Fgoth_template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Connorrmcd6%2Fgoth_template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Connorrmcd6%2Fgoth_template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Connorrmcd6","download_url":"https://codeload.github.com/Connorrmcd6/goth_template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241809613,"owners_count":20023787,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T17:29:11.468Z","updated_at":"2025-03-04T08:11:22.975Z","avatar_url":"https://github.com/Connorrmcd6.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Golang Templ HTMX (GoTH) Template\n\nThis repository serves as a template for building server-side web applications using Golang, Templ, and HTMX. It provides a solid foundation to get started quickly with these technologies.\n\n## Overview\n\n- **Golang**: A statically typed, compiled programming language designed for simplicity and efficiency.\n- **Templ**: A templating engine for Go, enabling easy and efficient HTML generation.\n- **HTMX**: A library that allows you to access modern browser features directly from HTML, making it easier to build interactive web applications.\n\n## Getting Started\n\n### Prerequisites\n\n- [Golang](https://golang.org/doc/install) (version 1.16 or higher)\n- [Node.js](https://nodejs.org/) (for managing frontend dependencies)\n- [Tailwind CSS](https://tailwindcss.com/) (for styling)\n\n### Installation\n\n1. **Clone the repository \u0026 create .env file**:\n\n   ```sh\n   git clone https://github.com/yourusername/goth-template.git\n   cd goth-template\n   touch .env\n   \u003c!-- add LISTEN_ADDR=\":3000\" or which ever port you want to .env --\u003e\n   ```\n\n2. **Install dependencies**:\n\n   ```sh\n   go mod tidy\n   go install github.com/air-verse/air@latest\n   go install github.com/a-h/templ/cmd/templ@latest\n   npm install\n   ```\n\n3. **Build the project**:\n\n   ```sh\n   make\n   ```\n\n4. **Run the application in development mode with hot reloading (use separate terminals for each command so they run simultaneously)**:\n   ```sh\n   air\n   templ generate --watch --proxy=http://localhost:3000\n   make css\n   ```\n\n### Usage\n\n- Access the application at `http://localhost:3000`.\n- Modify the templates in the `views` directory to customize the HTML.\n  - The template is configured to use the [pines.js](https://devdojo.com/pines) UI library to speed up development.\n- Use HTMX attributes in your HTML to add interactivity without writing JavaScript.\n\n## Resources\n\n- **Original Idea**: [Watch the video](https://www.youtube.com/live/1dqp1s72Z8E?si=BQKgbhSajzaQWnlP) that inspired this template.\n- **Golang Documentation**: [golang.org/doc](https://golang.org/doc/)\n- **Templ Documentation**: [templ.dev](https://templ.guide/)\n- **HTMX Documentation**: [htmx.org](https://htmx.org/)\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request with your improvements.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconnorrmcd6%2Fgoth_template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconnorrmcd6%2Fgoth_template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconnorrmcd6%2Fgoth_template/lists"}