{"id":15061774,"url":"https://github.com/bagashiz/go-pos","last_synced_at":"2025-04-12T15:36:35.892Z","repository":{"id":190757533,"uuid":"664173005","full_name":"bagashiz/go-pos","owner":"bagashiz","description":"Simple RESTful Point of Sale (POS) Service API written in Go using Gin web framework, PostgreSQL database, and Redis cache. Proof of concept of implementing Hexagonal Architecture in Go.","archived":false,"fork":false,"pushed_at":"2025-01-06T18:53:19.000Z","size":517,"stargazers_count":273,"open_issues_count":9,"forks_count":42,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-03T18:12:12.792Z","etag":null,"topics":["gin","go","golang","hexagonal-architecture","pgx","point-of-sales","postgresql","redis","rest-api"],"latest_commit_sha":null,"homepage":"https://gopos.bagashiz.xyz/docs/index.html","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/bagashiz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2023-07-09T05:59:52.000Z","updated_at":"2025-03-26T13:17:49.000Z","dependencies_parsed_at":"2024-03-09T16:40:55.625Z","dependency_job_id":"49098397-ea34-4da3-80a7-83ffcaced8f1","html_url":"https://github.com/bagashiz/go-pos","commit_stats":{"total_commits":165,"total_committers":3,"mean_commits":55.0,"dds":"0.32727272727272727","last_synced_commit":"30833c4511e18ad9f02210e24f2a3b08dc84518e"},"previous_names":["bagashiz/go-pos"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bagashiz%2Fgo-pos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bagashiz%2Fgo-pos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bagashiz%2Fgo-pos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bagashiz%2Fgo-pos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bagashiz","download_url":"https://codeload.github.com/bagashiz/go-pos/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248590373,"owners_count":21129801,"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":["gin","go","golang","hexagonal-architecture","pgx","point-of-sales","postgresql","redis","rest-api"],"created_at":"2024-09-24T23:24:58.380Z","updated_at":"2025-04-12T15:36:35.866Z","avatar_url":"https://github.com/bagashiz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go POS\n\n## Description\n\nA simple RESTful Point of Sale (POS) web service written in Go programming language. This project is a part of my learning process in understanding [Hexagonal Architecture](https://alistair.cockburn.us/hexagonal-architecture/) in Go.\n\nIt uses [Gin](https://gin-gonic.com/) as the HTTP framework and [PostgreSQL](https://www.postgresql.org/) as the database with [pgx](https://github.com/jackc/pgx/) as the driver and [Squirrel](https://github.com/Masterminds/squirrel/) as the query builder. It also utilizes [Redis](https://redis.io/) as the caching layer with [go-redis](https://github.com/redis/go-redis/) as the client.\n\nThis project idea was inspired by the [Ide Project untuk Upgrade Portfolio Backend Engineer](https://www.youtube.com/watch?v=uAR1kjyeDtg) video on YouTube by [Asdita Prasetya](https://www.youtube.com/@asditaprasetya), which provided valuable guidance and inspiration for its development.\n\n## Getting Started\n\n1. If you do not use devcontainer, ensure you have [Go](https://go.dev/dl/) 1.23 or higher and [Task](https://taskfile.dev/installation/) installed on your machine:\n\n    ```bash\n    go version \u0026\u0026 task --version\n    ```\n\n2. Create a copy of the `.env.example` file and rename it to `.env`:\n\n    ```bash\n    cp .env.example .env\n    ```\n\n    Update configuration values as needed.\n\n3. Install all dependencies, run docker compose, create database schema, and run database migrations:\n\n    ```bash\n    task\n    ```\n\n4. Run the project in development mode:\n\n    ```bash\n    task dev\n    ```\n\n## Documentation\n\nFor database schema documentation, see [here](https://dbdocs.io/bagashiz/Go-POS/), powered by [dbdocs.io](https://dbdocs.io/).\n\nAPI documentation can be found in `docs/` directory. To view the documentation, open the browser and go to `http://localhost:8080/docs/index.html`. The documentation is generated using [swaggo](https://github.com/swaggo/swag/) with [gin-swagger](https://github.com/swaggo/gin-swagger/) middleware.\n\n## Contributing\n\nDevelopers interested in contributing to Go POS project can refer to the [CONTRIBUTING](CONTRIBUTING.md) file for detailed guidelines and instructions on how to contribute.\n\n## License\n\nGo POS project is licensed under the [MIT License](LICENSE), providing an open and permissive licensing approach for further development and usage.\n\n## Learning References\n\n- [Hexagonal Architecture](https://alistair.cockburn.us/hexagonal-architecture/) by Alistair Cockburn\n- [Ready for changes with Hexagonal Architecture](https://netflixtechblog.com/ready-for-changes-with-hexagonal-architecture-b315ec967749) by Netflix Technology Blog\n- [Hexagonal Architecture in Go](https://medium.com/@matiasvarela/hexagonal-architecture-in-go-cfd4e436faa3) by Matias Varela\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbagashiz%2Fgo-pos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbagashiz%2Fgo-pos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbagashiz%2Fgo-pos/lists"}