{"id":23202067,"url":"https://github.com/trzpiot/spring-gradle-hexagonal-example","last_synced_at":"2025-08-19T00:32:10.045Z","repository":{"id":194153791,"uuid":"181470677","full_name":"trzpiot/spring-gradle-hexagonal-example","owner":"trzpiot","description":"A Spring example application with a hexagonal (clean) architecture \u0026 multi modules with Gradle.","archived":false,"fork":false,"pushed_at":"2024-01-01T13:54:34.000Z","size":141,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-01-01T14:52:04.118Z","etag":null,"topics":["clean-architecture","gradle","hexagonal","hexagonal-architecture","java","multi-modules","ports-and-adapters","spring","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trzpiot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-04-15T11:12:34.000Z","updated_at":"2022-12-09T12:48:39.000Z","dependencies_parsed_at":"2024-01-01T14:48:07.861Z","dependency_job_id":"722b9918-a84d-455b-b940-c4ee899117d1","html_url":"https://github.com/trzpiot/spring-gradle-hexagonal-example","commit_stats":null,"previous_names":["trzpiot/spring-gradle-hexagonal-example"],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trzpiot%2Fspring-gradle-hexagonal-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trzpiot%2Fspring-gradle-hexagonal-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trzpiot%2Fspring-gradle-hexagonal-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trzpiot%2Fspring-gradle-hexagonal-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trzpiot","download_url":"https://codeload.github.com/trzpiot/spring-gradle-hexagonal-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230292707,"owners_count":18203651,"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":["clean-architecture","gradle","hexagonal","hexagonal-architecture","java","multi-modules","ports-and-adapters","spring","spring-boot"],"created_at":"2024-12-18T15:18:52.644Z","updated_at":"2025-08-19T00:32:10.026Z","avatar_url":"https://github.com/trzpiot.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spring-gradle-hexagonal-example\n\n[![Maintenance](https://img.shields.io/maintenance/yes/2025)](https://github.com/trzpiot/spring-gradle-hexagonal-example/commits/main)\n[![Nix Flake](https://img.shields.io/badge/Nix%20Flake-%235277C3?logo=snowflake)](https://nix.dev/concepts/flakes.html)\n\n\nA Spring example application with a hexagonal (clean) architecture \u0026 multi modules with Gradle.\n\n## Prerequirements\n\n- JDK \u003e= 21\n- Docker\n- Docker Compose\n\n## Run\n\n#### Clone the project\n\n```bash\n# HTTPS\ngit clone https://github.com/trzpiot/spring-gradle-hexagonal-example.git\n\n# or\n\n# SSH\ngit clone git@github.com:trzpiot/spring-gradle-hexagonal-example.git\n```\n\n#### Go to the project directory\n\n```bash\ncd spring-gradle-hexagonal-example\n```\n\n#### Start the Neo4j server\n\n```bash\ncd database-neo4j\ndocker-compose up -d\ncd ..\n```\n\n#### Start the example application server\n\n```bash\n./gradlew bootRun\n```\n\n## API\n\nYou can use the [Bruno collection](/bruno) for testing the API ([What is Bruno?](https://github.com/usebruno/bruno)).\n\n### Create person\n\n#### Request\n\n`POST /person/create`\n\n```json\n{\n  \"name\": \"Name\",\n  \"firstName\": \"FirstName\",\n  \"age\": 44\n}\n```\n\n#### Response\n\nThe Object ID of the created person entity.\n\n```json\n\"b6b5a014-1829-4195-b7be-80b742455297\"\n```\n\n### Get person\n\n#### Request\n\n`GET /person/get/{objectId}`\n\n#### Response\n\n```json\n{\n  \"objectId\": \"b6b5a014-1829-4195-b7be-80b742455297\",\n  \"name\": \"Name\",\n  \"firstName\": \"FirstName\",\n  \"age\": 44\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrzpiot%2Fspring-gradle-hexagonal-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrzpiot%2Fspring-gradle-hexagonal-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrzpiot%2Fspring-gradle-hexagonal-example/lists"}