{"id":23252230,"url":"https://github.com/quangdangfit/goshop","last_synced_at":"2025-04-06T14:10:58.724Z","repository":{"id":56149288,"uuid":"281003550","full_name":"quangdangfit/goshop","owner":"quangdangfit","description":"E-Commerce backend system via Golang and Postgres","archived":false,"fork":false,"pushed_at":"2024-06-30T12:57:40.000Z","size":447,"stargazers_count":283,"open_issues_count":0,"forks_count":62,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T13:07:54.386Z","etag":null,"topics":["ddd","domain-driven-design","ecommerce","gin","golang","gprc","postgresql","redis","restful","swagger"],"latest_commit_sha":null,"homepage":"","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/quangdangfit.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":"2020-07-20T03:29:06.000Z","updated_at":"2025-03-27T23:03:02.000Z","dependencies_parsed_at":"2025-01-16T14:15:29.458Z","dependency_job_id":"1c076252-e85e-4a45-b155-5bf3cbe51c7e","html_url":"https://github.com/quangdangfit/goshop","commit_stats":{"total_commits":186,"total_committers":2,"mean_commits":93.0,"dds":0.4139784946236559,"last_synced_commit":"52a8fd0a3c88e2006630e468c08158282efb6df6"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quangdangfit%2Fgoshop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quangdangfit%2Fgoshop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quangdangfit%2Fgoshop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quangdangfit%2Fgoshop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quangdangfit","download_url":"https://codeload.github.com/quangdangfit/goshop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247492513,"owners_count":20947544,"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":["ddd","domain-driven-design","ecommerce","gin","golang","gprc","postgresql","redis","restful","swagger"],"created_at":"2024-12-19T10:13:40.415Z","updated_at":"2025-04-06T14:10:58.699Z","avatar_url":"https://github.com/quangdangfit.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Shop\n[![Master](https://github.com/quangdangfit/goshop/workflows/master/badge.svg)](https://github.com/quangdangfit/goshop/actions)\n[![codecov](https://codecov.io/gh/quangdangfit/goshop/graph/badge.svg?token=78BO8FQDB0)](https://codecov.io/gh/quangdangfit/goshop)\n![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/quangdangfit/goshop?style=flat-square)\n[![GitHub](https://img.shields.io/github/license/jrapoport/gothic?style=flat-square)](https://github.com/quangdangfit/goshop/blob/master/LICENSE)\n\nAn example of gin contains many useful features for e-commerce websites\n\n## How to run\n\n### Required Environment\n\n- Postgres\n- Redis\n\nYou can see the docker compose file [here](https://github.com/quangdangfit/docker-compose-template/blob/master/base/docker-compose.yml) to set up required environment\n\n### Config\n- Copy config file: `cp pkg/config/config.sample.yaml pkg/config/config.yaml`\n- You should modify `pkg/config/config.yaml`\n\n```yaml\nenvironment: production\nhttp_port: 8888\ngrpc_port: 8889\nauth_secret: ######\ndatabase_uri: postgres://username:password@host:5432/database\nredis_uri: localhost:6379\nredis_password:\nredis_db: 0\n```\n\n### Run\n```shell script\n$ go run cmd/api/main.go \n```\n```\n2023-09-12T15:18:36.684+0700    INFO    http/server.go:58       HTTP server is listening on PORT: 8888\n2023-09-12T15:18:36.684+0700    INFO    grpc/server.go:53       GRPC server is listening on PORT: 8889\n```\n\n### Test\n```shell script\n$ go test\n```\n\n### Test with Coverage\n```shell script\ngo test -timeout 9000s -a -v -coverprofile=coverage.out -coverpkg=./... ./...\n```\n\n**or**\n\n```shell script\nmake unittest\n```\n\n### Document\n* API document at: `http://localhost:8888/swagger/index.html`\n\n### Tech stack\n- Restful API\n- GRPC\n- DDD\n- Gorm\n- Swagger\n- Logging\n- Jwt-Go\n- Gin-gonic\n- Redis\n\n### What's next?\n- gRPC functions for products and orders\n- Push message to notify place order successfully\n- Payment with PayPal\n- Define error response wrapper\n\n### Donate:\n- Ethereum: `0x96b2F7E87786Db12121D66477e87539619aa2c97`\n- BNB Chain: `0x96b2F7E87786Db12121D66477e87539619aa2c97`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquangdangfit%2Fgoshop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquangdangfit%2Fgoshop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquangdangfit%2Fgoshop/lists"}