{"id":21417536,"url":"https://github.com/davidgfolch/shop","last_synced_at":"2025-07-04T09:01:50.705Z","repository":{"id":233860874,"uuid":"241944936","full_name":"davidgfolch/shop","owner":"davidgfolch","description":"Customer \u0026 order management","archived":false,"fork":false,"pushed_at":"2020-02-26T18:37:43.000Z","size":139,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-23T05:45:38.174Z","etag":null,"topics":["functional-programming","generics","gradle-multi-project","hexagonal-architecture","java-8","junit5","lombok","mockito","rest-api","sonarqube","spring-boot-2","spring-boot-data-jpa","spring-boot-starter-test","swagger2","transactional"],"latest_commit_sha":null,"homepage":null,"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/davidgfolch.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}},"created_at":"2020-02-20T17:20:19.000Z","updated_at":"2020-02-26T18:37:45.000Z","dependencies_parsed_at":"2024-04-17T14:39:40.947Z","dependency_job_id":null,"html_url":"https://github.com/davidgfolch/shop","commit_stats":null,"previous_names":["davidgfolch/shop"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidgfolch%2Fshop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidgfolch%2Fshop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidgfolch%2Fshop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidgfolch%2Fshop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidgfolch","download_url":"https://codeload.github.com/davidgfolch/shop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243918629,"owners_count":20368745,"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":["functional-programming","generics","gradle-multi-project","hexagonal-architecture","java-8","junit5","lombok","mockito","rest-api","sonarqube","spring-boot-2","spring-boot-data-jpa","spring-boot-starter-test","swagger2","transactional"],"created_at":"2024-11-22T19:16:11.853Z","updated_at":"2025-03-16T19:19:56.901Z","avatar_url":"https://github.com/davidgfolch.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shop\n\n[![Build Status](https://travis-ci.com/davidgfolch/shop.svg?branch=master)](https://travis-ci.com/davidgfolch/shop)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=13814eaa9b43ba5e25d2df7d0f0130c37635a8de\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=13814eaa9b43ba5e25d2df7d0f0130c37635a8de)\n[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=13814eaa9b43ba5e25d2df7d0f0130c37635a8de\u0026metric=bugs)](https://sonarcloud.io/dashboard?id=13814eaa9b43ba5e25d2df7d0f0130c37635a8de)\n[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=13814eaa9b43ba5e25d2df7d0f0130c37635a8de\u0026metric=code_smells)](https://sonarcloud.io/dashboard?id=13814eaa9b43ba5e25d2df7d0f0130c37635a8de)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=13814eaa9b43ba5e25d2df7d0f0130c37635a8de\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=13814eaa9b43ba5e25d2df7d0f0130c37635a8de)\n[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=13814eaa9b43ba5e25d2df7d0f0130c37635a8de\u0026metric=duplicated_lines_density)](https://sonarcloud.io/dashboard?id=13814eaa9b43ba5e25d2df7d0f0130c37635a8de)\n[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=13814eaa9b43ba5e25d2df7d0f0130c37635a8de\u0026metric=ncloc)](https://sonarcloud.io/dashboard?id=13814eaa9b43ba5e25d2df7d0f0130c37635a8de)\n[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=13814eaa9b43ba5e25d2df7d0f0130c37635a8de\u0026metric=sqale_rating)](https://sonarcloud.io/dashboard?id=13814eaa9b43ba5e25d2df7d0f0130c37635a8de)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=13814eaa9b43ba5e25d2df7d0f0130c37635a8de\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=13814eaa9b43ba5e25d2df7d0f0130c37635a8de)\n[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=13814eaa9b43ba5e25d2df7d0f0130c37635a8de\u0026metric=reliability_rating)](https://sonarcloud.io/dashboard?id=13814eaa9b43ba5e25d2df7d0f0130c37635a8de)\n[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=13814eaa9b43ba5e25d2df7d0f0130c37635a8de\u0026metric=security_rating)](https://sonarcloud.io/dashboard?id=13814eaa9b43ba5e25d2df7d0f0130c37635a8de)\n[![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=13814eaa9b43ba5e25d2df7d0f0130c37635a8de\u0026metric=sqale_index)](https://sonarcloud.io/dashboard?id=13814eaa9b43ba5e25d2df7d0f0130c37635a8de)\n[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=13814eaa9b43ba5e25d2df7d0f0130c37635a8de\u0026metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=13814eaa9b43ba5e25d2df7d0f0130c37635a8de)\n\nHexagonal architecture approach.\n\nGradle multi module Spring-boot project.\n\nSonar plugin enabled.\n\nSwagger2 configuration enabled.\n\nH2 in memory persistence.\n\n## Testing\n\nJUnit / mockito\n\n## Lombok\n\nEnable annotation processing in IDE\n\nIntellij install lombok plugin.\n\n## Run\n\nRun the Spring Boot Application in restApi module.\n\nYou can try it with Swagger-ui accessing http://localhost:8080/swagger-ui.html\n\n## Swagger\nCreate product:\n\n    {\n      \"name\": \"Product1\",\n      \"price\": 10\n    }\n\nCreate order:\n\n    {\n      \"customerEmail\": \"d@gmail.com\",\n      \"products\": [\n        1\n      ]\n    }\n    \n## Considerations\n- You do not need to add authentication to your web service, but propose a protocol / method and\njustify your choice.\n    - Use of HTTPS.\n    - Password hash.\n    - Basic auth or OAuth.\n- How can you make the service redundant? What considerations should you do?\n    - Decoupling restApi, service, port and adapter from spring boot dependency management and communicate them via async or sync protocols/frameworks, for example, this [spring-cloud+kubernetes](https://dzone.com/articles/quick-guide-to-microservices-with-kubernetes-sprin) solution.\n\n\n## Travis\n\n### Sonarqube\n\nGenerate encrypted key\n\n    travis login --pro\n    travis encrypt --pro 7abce0510365e6f776e1f6b95727245001c43113\n    \ncopy to .travis.yml\n\nFollow instruccions in https://sonarcloud.io","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidgfolch%2Fshop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidgfolch%2Fshop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidgfolch%2Fshop/lists"}