{"id":20134878,"url":"https://github.com/joeymckenzie/realworld-go-kit","last_synced_at":"2025-04-09T17:31:21.261Z","repository":{"id":41397291,"uuid":"477850647","full_name":"JoeyMckenzie/realworld-go-kit","owner":"JoeyMckenzie","description":"Realworld implementation written with Go using Go kit!","archived":false,"fork":false,"pushed_at":"2023-06-04T19:27:06.000Z","size":20457,"stargazers_count":63,"open_issues_count":1,"forks_count":9,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-23T19:39:06.024Z","etag":null,"topics":["docker","fly","go","go-chi","go-kit","golangci-lint","mysql","planetscale","pre-commit","sqlx","taskfile"],"latest_commit_sha":null,"homepage":"","language":"Go","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/JoeyMckenzie.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":"2022-04-04T19:49:03.000Z","updated_at":"2025-01-24T04:02:38.000Z","dependencies_parsed_at":"2024-06-18T22:38:16.995Z","dependency_job_id":"e72f8ee9-9f1d-4236-b7ea-2d11eff2b520","html_url":"https://github.com/JoeyMckenzie/realworld-go-kit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoeyMckenzie%2Frealworld-go-kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoeyMckenzie%2Frealworld-go-kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoeyMckenzie%2Frealworld-go-kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoeyMckenzie%2Frealworld-go-kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JoeyMckenzie","download_url":"https://codeload.github.com/JoeyMckenzie/realworld-go-kit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248077300,"owners_count":21043936,"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":["docker","fly","go","go-chi","go-kit","golangci-lint","mysql","planetscale","pre-commit","sqlx","taskfile"],"created_at":"2024-11-13T21:12:26.018Z","updated_at":"2025-04-09T17:31:20.863Z","avatar_url":"https://github.com/JoeyMckenzie.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![realworld_logo](/realworld-dual-mode.png)\r\n\r\n# RealWorld Go Kit\r\n\r\nA RealWorld implementation written with Go and go-kit!\r\n\r\nThis project utilizes several popular Go-based libraries and technologies, primarily including:\r\n\r\n- [Go kit](https://gokit.io/) as a general application framework\r\n- [Chi](https://github.com/go-chi/chi) for routing\r\n- [sqlx](https://github.com/jmoiron/sqlx) for querying\r\n- [Fly](https://fly.io/) for hosting\r\n- [Docker](https://www.docker.com/) for containerization\r\n- [PlanetScale](https://planetscale.com/) for database hosting\r\n- [Taskfile](https://taskfile.dev/) for task orchestration\r\n- [golangci-lint](https://golangci-lint.run/) for linting\r\n- [pre-commit](https://pre-commit.com/) for code quality git hooks\r\n\r\n## Getting Started\r\n\r\nTo get started, verify that Docker and Go 1.20 are installed. Next, install the Taskfile CLI and golangci-lint:\r\n\r\n```bash\r\ngo install github.com/go-task/task/v3/cmd/task@latest\r\ngo install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.52.2\r\n```\r\n\r\nNext, set your `.env` file:\r\n\r\n```bash\r\nmv .env.example .env\r\n```\r\n\r\nPlanetScale is based on MySQL, but any old MySQL database will. Run the SQL in the [schema](./schema.sql) file to create\r\nall the necessary tables. If you're using PlanetScale, simply setup an account and add your connection strings to the [.env](./.env) file.\r\n\r\nOnce the tool are installed, run the application as a task:\r\n\r\n```bash\r\ntask run\r\n```\r\n\r\nThat's it! Checkout the [Taskfile](./Taskfile.yml) to see the various tasks available for running. To run integration tests\r\nagainst the running server, open a new terminal and run:\r\n\r\n```bash\r\ntask integration:local\r\n```\r\n\r\nAll tests should pass and there is CI setup to run integration tests against the deployed instance on Fly.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeymckenzie%2Frealworld-go-kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoeymckenzie%2Frealworld-go-kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeymckenzie%2Frealworld-go-kit/lists"}