{"id":37420867,"url":"https://github.com/larmic/neusta-code-challange-java","last_synced_at":"2026-01-16T06:06:17.093Z","repository":{"id":38419385,"uuid":"123572689","full_name":"larmic/neusta-code-challange-java","owner":"larmic","description":"This is a submission to the neusta code challenge 2017. The following technologies have been used for the implementation: maven, java, spring boot, swagger and optional docker.","archived":false,"fork":false,"pushed_at":"2025-12-15T17:30:45.000Z","size":70,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-19T00:16:39.122Z","etag":null,"topics":["code-challenge","hexagonal-architecture","java","java-8","java8","spring-boot"],"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/larmic.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-03-02T11:44:36.000Z","updated_at":"2025-11-21T06:13:46.000Z","dependencies_parsed_at":"2025-07-28T18:16:54.281Z","dependency_job_id":"69ea465a-3971-457e-97b4-250d90eee94c","html_url":"https://github.com/larmic/neusta-code-challange-java","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/larmic/neusta-code-challange-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larmic%2Fneusta-code-challange-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larmic%2Fneusta-code-challange-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larmic%2Fneusta-code-challange-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larmic%2Fneusta-code-challange-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/larmic","download_url":"https://codeload.github.com/larmic/neusta-code-challange-java/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larmic%2Fneusta-code-challange-java/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477632,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T03:13:13.607Z","status":"ssl_error","status_checked_at":"2026-01-16T03:11:47.863Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["code-challenge","hexagonal-architecture","java","java-8","java8","spring-boot"],"created_at":"2026-01-16T06:06:17.038Z","updated_at":"2026-01-16T06:06:17.084Z","avatar_url":"https://github.com/larmic.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Neusta Code Challenge\n\n[![Java CI with Maven](https://github.com/larmic/neusta-code-challange-java/actions/workflows/maven.yml/badge.svg)](https://github.com/larmic/neusta-code-challange-java/actions/workflows/maven.yml)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\n## Introduction\n\nThis is a submission to the neusta code challenge 2017. \nThe following technologies have been used for the implementation: maven, java, spring boot, swagger and optional docker.\n\nThree endpoints are available after starting the application:\n\n* POST /api/import consumes multipart/form-data\n* GET /api/room/{roomNumber} produces JSON\n* GET /api/room produces JSON\n\nThe acceptance criteria are not completely clear regarding the following question:\nCan a room be searched for by person details? \nFor example, shall I be able to enter a person's name/ldap and the application returns the room?\n\nIn case the above mentioned criteria is required, a quick solution was implemented in the third endpoint.\nIt accepts the optional query parameter \"ldapUser\". \nSearching by \"ldapUser\" returns a list of all rooms that have a person assigned whose ldap user name contains the given string.\n \nIf the possibility to search for user details is a required feature, two additional endpoints should be implemented:\n \n* GET /api/persons/{ldapUser} \n* GET /api/persons?firstName=...\u0026lastName=...\u0026ldapUserName=...\n\nThe returning JSON should contain a link to the corresponding rooms (see HATEOAS).\n\n## Main design decisions\n\nDue to time constrains no ARC42 documentation is created. \n\n| Decision | Reason |\n| --- |---|\n| Java | \u003cul\u003e\u003cli\u003eNext to kotlin my favorite language\u003c/li\u003e\u003c/ul\u003e|\n| Spring | \u003cul\u003e\u003cli\u003eSpring is popular for building web and enterprise applications\u003c/li\u003e\u003cli\u003eSpring supports dependency injection\u003c/li\u003e\u003cli\u003eIt is easy to write tests in Spring\u003c/li\u003e\u003c/ul\u003e  |\n| Spring Boot | \u003cul\u003e\u003cli\u003eSpring Boot make it easy to create Spring-powered, production-grade applications and services with minimum fuss.\u003c/li\u003e\u003cli\u003eSpring Boot provides a range of non-functional features that are common to large classes of projects (e.g. embedded servers, security, metrics, health checks, externalized configuration)\u003c/li\u003e\u003c/ul\u003e  |\n| Hexagonal (or onion) architecture | \u003cul\u003e\u003cli\u003eIt is an architectural style that moves programmer’s focus from conceptual layers to a distinction between the software’s inside and outside parts\u003c/li\u003e\u003cli\u003eHexagonal Architecture defines conceptual layers of code responsibility, and then points out ways to decouple code between those layers.\u003c/li\u003e\u003c/ul\u003e |\n\n## Requirements\n\n* Java 17\n* Maven \u003e= 3.2.1\n* Docker optional\n\n## Build and run\n\n### Plain Java\n\n```ssh\nmvn clean package\njava -jar target/ncc.jar\n```\n\n### Docker\n\nTo build docker image a docker service must run on host system.\n\n```ssh\nmvn clean package docker:build\ndocker run -d -p 8080:8080 ncc/ncc \n```\n\n## Testing and documentation\n \n### Swagger UI\n\nAfter starting the application, please open [swagger ui](http://localhost:8080/) access the rest endpoints documentation.\n \n### Test coverage\n\n```ssh\nmvn clean cobertura:cobertura\n```\n\nand open ```target/site/cobertura/index.html``` in your browser. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flarmic%2Fneusta-code-challange-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flarmic%2Fneusta-code-challange-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flarmic%2Fneusta-code-challange-java/lists"}