{"id":37420805,"url":"https://github.com/larmic/neusta-code-challange-kotlin","last_synced_at":"2026-01-16T06:06:13.515Z","repository":{"id":38217158,"uuid":"123574305","full_name":"larmic/neusta-code-challange-kotlin","owner":"larmic","description":"This is a java to kotlin migration https://github.com/larmic/neusta-code-challange-java","archived":false,"fork":false,"pushed_at":"2025-12-16T10:06:19.000Z","size":214,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-19T23:15:35.112Z","etag":null,"topics":["code-challenge","java","java-8","java-to-kotlin","java8","kotlin","spring-boot"],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","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":"LICENSE","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-02T12:02:31.000Z","updated_at":"2025-12-07T12:38:14.000Z","dependencies_parsed_at":"2023-11-16T05:22:20.736Z","dependency_job_id":"d5c9a0c6-0ae0-4df8-b4c0-6a98038dda36","html_url":"https://github.com/larmic/neusta-code-challange-kotlin","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/larmic/neusta-code-challange-kotlin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larmic%2Fneusta-code-challange-kotlin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larmic%2Fneusta-code-challange-kotlin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larmic%2Fneusta-code-challange-kotlin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larmic%2Fneusta-code-challange-kotlin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/larmic","download_url":"https://codeload.github.com/larmic/neusta-code-challange-kotlin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larmic%2Fneusta-code-challange-kotlin/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","java","java-8","java-to-kotlin","java8","kotlin","spring-boot"],"created_at":"2026-01-16T06:06:13.367Z","updated_at":"2026-01-16T06:06:13.510Z","avatar_url":"https://github.com/larmic.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Neusta Code Challenge \n\n[![CI with Maven](https://github.com/larmic/neusta-code-challange-kotlin/actions/workflows/maven.yml/badge.svg)](https://github.com/larmic/neusta-code-challange-kotlin/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](misc/codeChallenge.pdf) [Git Tag v2017-MARCH](https://github.com/larmic/neusta-code-challange-kotlin/releases/tag/v2017-MARCH). \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 \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.6.x\n* Docker optional\n\n## Build and run\n\n### Plain Java\n\n```ssh\nmvn clean package\njava -jar target/ncc-kotlin.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-kotlin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flarmic%2Fneusta-code-challange-kotlin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flarmic%2Fneusta-code-challange-kotlin/lists"}