{"id":19144404,"url":"https://github.com/maragudk/gomponents-starter-kit","last_synced_at":"2025-04-09T18:21:54.032Z","repository":{"id":259877997,"uuid":"872509035","full_name":"maragudk/gomponents-starter-kit","owner":"maragudk","description":"A starter kit for building a web app with gomponents, HTMX, and TailwindCSS in Go.","archived":false,"fork":false,"pushed_at":"2025-03-24T23:49:38.000Z","size":282,"stargazers_count":75,"open_issues_count":4,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-02T13:54:08.249Z","etag":null,"topics":["go","golang","gomponents","html","htmx","tailwindcss"],"latest_commit_sha":null,"homepage":"https://www.gomponents.com","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maragudk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-10-14T14:58:58.000Z","updated_at":"2025-03-28T16:48:50.000Z","dependencies_parsed_at":"2024-10-28T15:44:55.405Z","dependency_job_id":"02efeb34-03a1-41cc-924d-e598c4d4a7d7","html_url":"https://github.com/maragudk/gomponents-starter-kit","commit_stats":null,"previous_names":["maragudk/gomponents-starter-kit"],"tags_count":0,"template":true,"template_full_name":"maragudk/template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maragudk%2Fgomponents-starter-kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maragudk%2Fgomponents-starter-kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maragudk%2Fgomponents-starter-kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maragudk%2Fgomponents-starter-kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maragudk","download_url":"https://codeload.github.com/maragudk/gomponents-starter-kit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248085629,"owners_count":21045189,"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":["go","golang","gomponents","html","htmx","tailwindcss"],"created_at":"2024-11-09T07:34:49.188Z","updated_at":"2025-04-09T18:21:54.010Z","avatar_url":"https://github.com/maragudk.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gomponents-starter-kit\n\n\u003cimg src=\"logo.png\" alt=\"Logo\" width=\"300\" align=\"right\"\u003e\n\n[![GoDoc](https://pkg.go.dev/badge/github.com/maragudk/gomponents-starter-kit)](https://pkg.go.dev/github.com/maragudk/gomponents-starter-kit)\n[![Go](https://github.com/maragudk/gomponents-starter-kit/actions/workflows/ci.yml/badge.svg)](https://github.com/maragudk/gomponents-starter-kit/actions/workflows/ci.yml)\n[![Go](https://github.com/maragudk/gomponents-starter-kit/actions/workflows/cd.yml/badge.svg)](https://github.com/maragudk/gomponents-starter-kit/actions/workflows/cd.yml)\n\nA starter kit for building a web app with gomponents, HTMX, and TailwindCSS in Go.\n\nMade with ✨sparkles✨ by [maragu](https://www.maragu.dev/).\n\nDoes your company depend on this project? [Contact me at markus@maragu.dk](mailto:markus@maragu.dk?Subject=Supporting%20your%20project) to discuss options for a one-time or recurring invoice to ensure its continued thriving.\n\n## Getting started\n\nThe easiest way to get started is to [Use this template](https://github.com/new?template_name=gomponents-starter-kit\u0026template_owner=maragudk) to create a new repository. Or you could clone this repository the traditional way:\n\n```shell\ngit clone git@github.com:maragudk/gomponents-starter-kit.git your-app-name\n```\n\nAfter that, you can start the app with:\n\n```shell\nmake start\n```\n\nIf you make style changes, watch the CSS with:\n\n```shell\nmake watch-css\n```\n\nYou can run tests and linting with:\n\n```shell\nmake test lint\n```\n\n### Enabling TailwindCSS auto-complete in your IDE\n\n[TailwindCSS has auto-complete of classnames (and more) through IDE plugins](https://tailwindcss.com/docs/editor-setup).\n\nAfter you've installed the TailwindCSS plugin for your IDE, it needs some configuration to work with gomponents. Here's the config for VS Code and JetBrains IDEs:\n\n\u003cdetails\u003e\n\u003csummary\u003eVSCode\u003c/summary\u003e\n\nEdit `vscode-settings.json` and add the following:\n\n```json\n{\n\t\"tailwindCSS.includeLanguages\": {\n\t\t\"go\": \"html\",\n\t},\n\t\"tailwindCSS.experimental.classRegex\": [\n\t\t[\"Class(?:es)?[({]([^)}]*)[)}]\", \"[\\\"`]([^\\\"`]*)[\\\"`]\"]\n\t],\n}\n```\n\n[See the official plugin page for more info](https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss)\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eJetBrains/GoLand\u003c/summary\u003e\n\nGo to `Settings` -\u003e `Languages \u0026 Frameworks` -\u003e `Style Sheets` -\u003e `Tailwind CSS` and add the following (don't delete the other config):\n\n```json\n{\n\t\"includeLanguages\": {\n\t\t\"go\": \"html\"\n\t},\n\t\"experimental\": {\n\t\t\"classRegex\": [\n\t\t\t[\"Class(?:es)?[({]([^)}]*)[)}]\", \"[\\\"`]([^\\\"`]*)[\\\"`]\"]\n\t\t]\n\t}\n}\n```\n\n[See the official plugin page for more info](https://plugins.jetbrains.com/plugin/15321-tailwind-css)\n\u003c/details\u003e\n\n## Deploying\n\nThe [CD workflow](.github/workflows/cd.yml) automatically builds a multi-platform Docker image and pushes it to the Github container registry GHCR.io, tagged with the commit hash as well as `latest`.\n\nYou can try building the image locally with:\n\n```shell\nmake build-docker\n```\n\nNote that [you need the containerd image store enabled](https://docs.docker.com/desktop/containerd/#enable-the-containerd-image-store) for this to work.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaragudk%2Fgomponents-starter-kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaragudk%2Fgomponents-starter-kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaragudk%2Fgomponents-starter-kit/lists"}