{"id":28334944,"url":"https://github.com/derens86/micro-services","last_synced_at":"2025-10-25T00:37:29.956Z","repository":{"id":287387526,"uuid":"964560715","full_name":"DerEns86/micro-services","owner":"DerEns86","description":"A repo to implement microservices in Java","archived":false,"fork":false,"pushed_at":"2025-04-16T14:45:21.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-17T08:42:21.728Z","etag":null,"topics":["api-gateway","config-server","discovery-service","eureka","postgresql","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","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/DerEns86.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,"zenodo":null}},"created_at":"2025-04-11T12:09:54.000Z","updated_at":"2025-06-05T13:18:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"018b4f76-f5a2-4165-a8b0-ac5a5b6838cc","html_url":"https://github.com/DerEns86/micro-services","commit_stats":null,"previous_names":["derens86/micro-services"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DerEns86/micro-services","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DerEns86%2Fmicro-services","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DerEns86%2Fmicro-services/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DerEns86%2Fmicro-services/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DerEns86%2Fmicro-services/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DerEns86","download_url":"https://codeload.github.com/DerEns86/micro-services/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DerEns86%2Fmicro-services/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277483275,"owners_count":25825559,"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","status":"online","status_checked_at":"2025-09-29T02:00:09.175Z","response_time":84,"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":["api-gateway","config-server","discovery-service","eureka","postgresql","spring-boot"],"created_at":"2025-05-26T21:53:45.824Z","updated_at":"2025-09-29T07:32:51.535Z","avatar_url":"https://github.com/DerEns86.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Microservice Project with PostgreSQL\n\nThis project is part of a microservice architecture using Spring Boot. It connects to two PostgreSQL databases running in Docker containers: `ms-employees` and `ms-projects`.\n\n---\n\n## 🐘 PostgreSQL Setup with Docker Desktop\n\nTwo PostgreSQL containers are required:\n\n- `ms-employees` (listening on port `5433`)\n- `ms-projects` (listening on port `5432`)\n\n\u003e **Note:** You can run these containers using Docker Desktop manually.\n\n### ✅ Step-by-step Instructions\n\n1. Open **Docker Desktop**\n2. Go to the **Containers** tab and click on **+ Add Container**\n3. Set up each container as follows:\n\n#### `ms-projects` Container\n\n| Property       | Value                     |\n|----------------|---------------------------|\n| Image          | `postgres:15`             |\n| Container Name | `ms-projects`             |\n| Port           | `5432:5432`               |\n| Environment    |                            |\n| - `POSTGRES_DB`       | `projects`         |\n| - `POSTGRES_USER`     | `username`         |\n| - `POSTGRES_PASSWORD` | `password`         |\n\n#### `ms-employees` Container\n\n| Property       | Value                     |\n|----------------|---------------------------|\n| Image          | `postgres:15`             |\n| Container Name | `ms-employees`            |\n| Port           | `5433:5432`               |\n| Environment    |                            |\n| - `POSTGRES_DB`       | `employees`        |\n| - `POSTGRES_USER`     | `username`         |\n| - `POSTGRES_PASSWORD` | `password`         |\n\n\u003e ⚠️ Make sure both containers are running and accessible via their respective ports.\n\n---\n\n## 🚀 Running the Microservice\n\nOnce the PostgreSQL containers are up and running, you can start the Spring Boot microservice locally.\n\n### Prerequisites\n\n- Java 17+\n- Maven\n- Docker Desktop (with both DB containers running)\n- Eureka server running on port `8761`\n- Spring Cloud Config Server running on port `8888`\n\n### Run the service\n\n```bash\n./mvnw spring-boot:run\n```\n\nThe service will start on port `8090`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderens86%2Fmicro-services","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderens86%2Fmicro-services","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderens86%2Fmicro-services/lists"}