{"id":49359468,"url":"https://github.com/shablin/marketplace","last_synced_at":"2026-04-27T15:37:13.001Z","repository":{"id":350461990,"uuid":"1206869544","full_name":"shablin/marketplace","owner":"shablin","description":"✨⚙️ A backend for Marketplace written in Go with microservices architecture, gRPC and protobuf","archived":false,"fork":false,"pushed_at":"2026-04-20T22:38:21.000Z","size":46,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-20T23:30:47.634Z","etag":null,"topics":["grpc","microservices","protobuf"],"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/shablin.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-10T10:32:54.000Z","updated_at":"2026-04-20T21:40:20.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/shablin/marketplace","commit_stats":null,"previous_names":["shablin/marketplace"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shablin/marketplace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shablin%2Fmarketplace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shablin%2Fmarketplace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shablin%2Fmarketplace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shablin%2Fmarketplace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shablin","download_url":"https://codeload.github.com/shablin/marketplace/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shablin%2Fmarketplace/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32343564,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["grpc","microservices","protobuf"],"created_at":"2026-04-27T15:37:09.756Z","updated_at":"2026-04-27T15:37:12.995Z","avatar_url":"https://github.com/shablin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# marketplace\n\nStudy backend project with microservices for minimal marketplace\n\n# About\n\nA brief description of repository\n\n## Structure\n\n```\napi/                        External REST contracts (OpenAPI)\nproto/                      Internal gRPC contracts (Protobuf)\ninternal/platform/          Shared infrastructure docs\n\nservices/\n...api-gateway/\n...auth-service/\n...cart-service/\n...catalog-service/\n...notification-service/\n...order-service/\n...payment-service/\n...user-service/\n...\n```\n\n## Quick Start\n### Step 1. Up the services\n\n```bash\ndocker compose up --build\n```\n\nBy default, services available at:\n\n- gateway:          `:8080`\n- auth:             `:8081`\n- cart:             `:8082`\n- catalog:          `:8083`\n- notification:     `:8084`\n- order:            `:8085`\n- payment:          `:8086`\n- user:             `:8087`\n\n### Step 2. Check services availability\n\n```bash\ncurl -i http://localhost:8081/health\ncurl -i http://localhost:8081/ready\n```\n\nThe same way for other services, just\nget `/health` and `/ready`\nwith CURL by service's port, or run loop:\n\n```bash\nfor port in 8081 8082 8083 8084 8084 8085 8086 8087; do\n     curl -fsS \"http://localhost:${port}/health\" \u0026\u0026 echo \" \u003c- ${port} OK\"\ndone\n```\n\n## Workflow\n### Step 1. Register\n\n```bash\ncurl -s -X POST http://localhost:8081/auth/register \\\n     -H 'Content-Type: application/json' \\\n     -d '{\"email\":\"you@example.com\", \"password\": \"yourpassword\"}'\n```\n\n### Step 2. Login\n\n```bash\ncurl -s -X POST http://localhost:8081/auth/login \\\n     -H 'Content-Type: application/json' \\\n     -d '{\"email\":\"you@example.com\", \"password\":\"yourpassword\"}'\n```\n\n\u003e [!WARNING]\n\u003e Save `access_token` and `refresh_token` from response\n\n### Step 3. Checkout\n\nCheckout pipeline consist of:\n\n1. Create order\n2. Payment\n3. Get notification\n\nYou can test this pipeline with integration test:\n\n```bash\ncd services/order-service \u0026\u0026 go test ./internal/order -run TestCreateOrderPaymentNotificationFlow\n```\n\n\u003e [!IMPORTANT]\n\u003e Now this integration test and related business logic are still not implemented.\n\u003e Reference only\n\n### Step 4. Logout / Revoke Token\n\n```bash\ncurl -s -X POST http://localhost:8081/auth/logout \\\n     -H 'Content-Type: application/json' \\\n     -d '{\"refresh_token\":\"\u003crefresh_token\u003e\"}'\n```\n\n### Step 5. Reset password\n\n```bash\ncurl -s -X POST http://localhost:8081/auth/reset-password \\\n     -H 'Content-Type: application/json' \\\n     -d '{\"email\":\"you@example.com\"}'\n```\n\nThen you should approve password reset:\n\n```bash\ncurl -s -X POST http://localhost:8081/auth/reset-password/confirm \\\n     -H 'Content-Type: application/json' \\\n     -d '{\"token\":\"\u003creset_token\u003e\", \"new_password\":\"yournewpassword\"}'\n```\n\n## See also\n\nIf you're looking for contracts docs, check this out:\n\n- [REST/OpenAPI](https://github.com/shablin/marketplace/tree/main/api)\n- [gRPC/Protobuf](https://github.com/shablin/marketplace/tree/main/proto)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshablin%2Fmarketplace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshablin%2Fmarketplace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshablin%2Fmarketplace/lists"}