{"id":17760875,"url":"https://github.com/w-ptra/microservice_3service","last_synced_at":"2026-04-15T18:31:42.172Z","repository":{"id":258950558,"uuid":"874790579","full_name":"W-ptra/Microservice_3service","owner":"W-ptra","description":"A microservice system consisting 3 services: public-layer-service,user-service and listing-service. Build using Golang version 1.23.2,GORM as ORM,PostgreSQL as databases and Docker for containerization.","archived":false,"fork":false,"pushed_at":"2024-10-21T07:13:24.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T13:18:06.043Z","etag":null,"topics":["docker","docker-compose","fiber","golang","gorm","microservice","postgresql"],"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/W-ptra.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":"2024-10-18T13:18:06.000Z","updated_at":"2024-10-21T07:13:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"02233bf9-e687-4608-bb1a-677dbbbf0545","html_url":"https://github.com/W-ptra/Microservice_3service","commit_stats":null,"previous_names":["w-ptra/microservice_3service"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/W-ptra%2FMicroservice_3service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/W-ptra%2FMicroservice_3service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/W-ptra%2FMicroservice_3service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/W-ptra%2FMicroservice_3service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/W-ptra","download_url":"https://codeload.github.com/W-ptra/Microservice_3service/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246644097,"owners_count":20810687,"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","docker-compose","fiber","golang","gorm","microservice","postgresql"],"created_at":"2024-10-26T19:13:57.280Z","updated_at":"2026-04-15T18:31:42.121Z","avatar_url":"https://github.com/W-ptra.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Microservice_3service\nA microservice system consisting 3 services: ``public-layer-service``,``user-service`` and ``listing-service``. Build using ``Golang version 1.23.2``,``GORM`` as ORM,``PostgreSQL`` as databases and ``Docker`` for containerization.\n# High Level Overview\n![img](https://drive.google.com/uc?export=view\u0026id=1-bLq2BL6tLA0KJL7Hf3zGi81_23jdjyu)  \n# Prerequisite\n1. Have ``Golang`` min ``version 1.23.2`` or higher installed on your device\n2. Have ``Docker`` installed on your device\n# Usage\n1. clone this repository and cd to ``Microservice_3service``\n```\ngit clone https://github.com/W-ptra/Microservice_3service.git\ncd Microservice_3service\n```\n2. run following script to activate the ``docker-compose.yaml``\n```\ndocker-compose up\n```\n3. Use browser/postman/curl to interact with api\n```\nGET http://127.0.0.1:8000/public-api/listing\nor\nGET http://127.0.0.1:8000/public-api/listing?userId=1\u0026pageNum=2\u0026pageSize=5\nParameters:\n    pageNum = int # Default = 1\n    pageSize = int # Default = 10\n    userId = str # Optional\n\nPOST http://127.0.0.1:8000/public-api/listing\nheaders:    \n    Content-Type: application/json\nRequest body: (JSON body)\n    { // example\n        \"userId\": 1,\n        \"listingType\": \"rent\", // either \"rent\" or \"sale\"\n        \"price\": 6000 // can't negative\n    }\n\nPOST http://127.0.0.1:8000/public-api/users\nheaders:    \n    Content-Type: application/json\nRequest body: (JSON body)\n    { // example\n        \"name\": \"Lorel Ipsum\"\n    }\n```\n4. To clean up run following script\n```\ndocker-compose down\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fw-ptra%2Fmicroservice_3service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fw-ptra%2Fmicroservice_3service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fw-ptra%2Fmicroservice_3service/lists"}