{"id":26533406,"url":"https://github.com/FelipeAfonso/go-htmx-starter","last_synced_at":"2025-03-21T19:05:25.911Z","repository":{"id":272982345,"uuid":"918373916","full_name":"FelipeAfonso/go-htmx-starter","owner":"FelipeAfonso","description":"A basic starter template for Go + HTMX development, with Hot Reloading!","archived":false,"fork":false,"pushed_at":"2025-03-19T20:58:26.000Z","size":6304,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-19T21:41:11.175Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/FelipeAfonso.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":"2025-01-17T19:52:09.000Z","updated_at":"2025-03-19T20:58:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"c83efd43-25cb-4edc-befa-ff89540e89cb","html_url":"https://github.com/FelipeAfonso/go-htmx-starter","commit_stats":null,"previous_names":["felipeafonso/go-htmx-starter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FelipeAfonso%2Fgo-htmx-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FelipeAfonso%2Fgo-htmx-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FelipeAfonso%2Fgo-htmx-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FelipeAfonso%2Fgo-htmx-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FelipeAfonso","download_url":"https://codeload.github.com/FelipeAfonso/go-htmx-starter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244852677,"owners_count":20521155,"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":"2025-03-21T19:02:16.674Z","updated_at":"2025-03-21T19:05:25.903Z","avatar_url":"https://github.com/FelipeAfonso.png","language":"Go","funding_links":[],"categories":["Recently Updated","🚧 Boilerplates"],"sub_categories":["[Mar 20, 2025](/content/2025/03/20/README.md)","🌱 Third Party"],"readme":"# Go + HTMX Starter\n\nI didn't like any of the current GO/HTMX starter out there, so I decided to build my own.\nI hadn't found any templates out there that had proper hot reloading, which IMO is very important for UI work.\nSo, my goal was to create the simplest base I could start working with. \n\nThis is a Go Fiber boilerplate, that combines Vite/Air to handle Hot Reloading, improving the dev experience. \nIt uses Tailwindcss@v4 (with the Prettier plugin to sort classes); Vite to handle bundling of JS dependencies; and Bun to handle the installation of new dependencies.\n\n## Development\n\nThis project uses Bun to handle client side stuff. [Pay them a visit to install it first!](https://bun.sh/)\nYou'll probably need to install [ Air ](https://github.com/air-verse/air) too, and also [ Templ ](https://templ.guide/quick-start/installation). And you know, [ Go ](https://go.dev/doc/install) stuff...\n\nRun these the first time to install deps:\n```sh\ngo mod download\nbun install # for the first time building it\n```\n\n\nAnd the following commands to start your web page at ** http://localhost:3000 ** (Do not confuse with the vite's localhost:5173 that is used for bundling and tooling)\n```sh\nbun dev\n```\n\n## Deployment\n\nDockerfile and docker-compose are included, just run `docker compose up --build` to run locally\n\n## Formatting\n\nBesides using `gofmt` for most of the formatting, this also uses `prettier` to handle Tailwind classes sorting. So make sure your editor is ready to add `prettier` to `.templ` extensions, i.e. for conform.nvim: \n\n```lua\nformatters_by_ft = {\n  templ = { 'gofmt', 'prettier' },\n},\n```\n\n## Notes\n\nI'm personally using this in a small but active production application, and I couldn't be happier.\nI've been updating the starter as I made changes to the current active project. Its not a finished\nstarter by any means, but I'm aiming to keep using and updating it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFelipeAfonso%2Fgo-htmx-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFelipeAfonso%2Fgo-htmx-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFelipeAfonso%2Fgo-htmx-starter/lists"}