{"id":19874119,"url":"https://github.com/pythoninthegrass/twu","last_synced_at":"2025-04-05T17:25:59.588Z","repository":{"id":233216550,"uuid":"786259608","full_name":"pythoninthegrass/twu","owner":"pythoninthegrass","description":"Toy app to get better at Go and dabble in HTMX","archived":false,"fork":false,"pushed_at":"2025-02-07T23:33:05.000Z","size":197,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-11T14:27:47.097Z","etag":null,"topics":["go","golang","htmx"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pythoninthegrass.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-04-13T22:44:28.000Z","updated_at":"2024-04-19T14:21:51.000Z","dependencies_parsed_at":"2024-06-19T14:52:48.770Z","dependency_job_id":"1f6641cd-5f75-4d39-8f36-1b2e648be597","html_url":"https://github.com/pythoninthegrass/twu","commit_stats":null,"previous_names":["pythoninthegrass/twu"],"tags_count":1,"template":false,"template_full_name":"pythoninthegrass/go-seed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Ftwu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Ftwu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Ftwu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Ftwu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pythoninthegrass","download_url":"https://codeload.github.com/pythoninthegrass/twu/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247371729,"owners_count":20928271,"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","htmx"],"created_at":"2024-11-12T16:21:50.047Z","updated_at":"2025-04-05T17:25:59.557Z","avatar_url":"https://github.com/pythoninthegrass.png","language":"Go","readme":"# twu\n\n\u003c!-- [![Keep a Changelog](https://img.shields.io/badge/changelog-Keep%20a%20Changelog-%23E05735)](CHANGELOG.md)\n[![GitHub Release](https://img.shields.io/github/v/release/golang-templates/seed)](https://github.com/golang-templates/seed/releases)\n[![Go Reference](https://pkg.go.dev/badge/github.com/golang-templates/seed.svg)](https://pkg.go.dev/github.com/golang-templates/seed)\n[![go.mod](https://img.shields.io/github/go-mod/go-version/golang-templates/seed)](go.mod)\n[![LICENSE](https://img.shields.io/github/license/golang-templates/seed)](LICENSE)\n[![Build Status](https://img.shields.io/github/actions/workflow/status/golang-templates/seed/build.yml?branch=main)](https://github.com/golang-templates/seed/actions?query=workflow%3Abuild+branch%3Amain)\n[![Go Report Card](https://goreportcard.com/badge/github.com/golang-templates/seed)](https://goreportcard.com/report/github.com/golang-templates/seed)\n[![Codecov](https://codecov.io/gh/golang-templates/seed/branch/main/graph/badge.svg)](https://codecov.io/gh/golang-templates/seed)\n\n⭐ `Star` this repository if you find it valuable and worth maintaining.\n\n👁 `Watch` this repository to get notified about new releases, issues, etc. --\u003e\n\n`twu` consumes the [OpenWeatherMap API](https://openweathermap.org/current) to provide weather information for a given city.\n\nIt's built with Go and uses [HTMX](https://htmx.org/) to make the application interactive without writing _any_ JavaScript.\n\n## Quickstart\n\n* To run the application, execute the following commands:\n\n    ```bash\n    # run the application\n    go run main.go\n\n    # quit the application\n    Ctrl + C\n    ```\n\n* Once it's running, you can access the application at `http://localhost:8080`.\n* To build the application, execute the following commands:\n\n    ```bash\n    # build the application\n    go build -o ./build/twu .\n    ```\n\n* To run the built application, execute the following commands:\n\n    ```bash\n    # run the application\n    ./build/twu\n    ```\n\n* To run the tests, execute the following commands:\n\n    ```bash\n    # run the tests\n    go test ./...\n    ```\n\n## Setup\n\n1. Install [Go](https://golang.org/doc/install).\n2. Install [Visual Studio Code](https://code.visualstudio.com/).\n3. Install [Go extension](https://code.visualstudio.com/docs/languages/go).\n4. Clone and open this repository.\n5. `F1` -\u003e `Go: Install/Update Tools` -\u003e (select all) -\u003e OK.\n\n## Build\n\n### Terminal\n\n* `make`: execute the build pipeline.\n* `make help`: print help for the [Make targets](Makefile).\n\n### Visual Studio Code\n\n`F1` → `Tasks: Run Build Task (Ctrl+Shift+B or ⇧⌘B)` to execute the build pipeline.\n\n## Release\n\nThe release workflow is triggered each time a tag with `v` prefix is pushed.\n\n_CAUTION_: Make sure to understand the consequences before you bump the major version.\nMore info: [Go Wiki](https://github.com/golang/go/wiki/Modules#releasing-modules-v2-or-higher),\n[Go Blog](https://blog.golang.org/v2-go-modules).\n\n## Maintenance\n\nNotable files:\n\n* [.github/workflows](.github/workflows) - GitHub Actions workflows,\n* [.github/dependabot.yml](.github/dependabot.yml) - Dependabot configuration,\n* [.vscode](.vscode) - Visual Studio Code configuration files,\n* [.golangci.yml](.golangci.yml) - golangci-lint configuration,\n* [.goreleaser.yml](.goreleaser.yml) - GoReleaser configuration,\n* [Dockerfile](Dockerfile) - Dockerfile used by GoReleaser to create a container image,\n* [Makefile](Makefile) - Make targets used for development, [CI build](.github/workflows) and [.vscode/tasks.json](.vscode/tasks.json),\n* [go.mod](go.mod) - [Go module definition](https://github.com/golang/go/wiki/Modules#gomod),\n* [tools.go](tools.go) - [build tools](https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module).\n\n## Contributing\n\nFeel free to create an issue or propose a pull request.\n\nFollow the [Code of Conduct](CODE_OF_CONDUCT.md).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythoninthegrass%2Ftwu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpythoninthegrass%2Ftwu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythoninthegrass%2Ftwu/lists"}