{"id":19220292,"url":"https://github.com/y2k2mt/grouping-n","last_synced_at":"2025-10-13T01:20:17.565Z","repository":{"id":189460864,"uuid":"343592569","full_name":"y2k2mt/grouping-n","owner":"y2k2mt","description":"A tiny API: Just shuffles the given names.","archived":false,"fork":false,"pushed_at":"2022-03-27T06:39:08.000Z","size":50,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-10T15:08:42.714Z","etag":null,"topics":["akka","cats-mtl","dependency-injection","doobie","eff-monad","functional-programming","http4s","monix","scala","zio"],"latest_commit_sha":null,"homepage":"","language":"Scala","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/y2k2mt.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}},"created_at":"2021-03-02T00:03:58.000Z","updated_at":"2022-04-05T13:26:18.000Z","dependencies_parsed_at":"2023-08-20T08:28:43.119Z","dependency_job_id":"9d2b19e6-e2d6-4f34-be39-3133a6504ed8","html_url":"https://github.com/y2k2mt/grouping-n","commit_stats":null,"previous_names":["y2k2mt/grouping-n"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/y2k2mt/grouping-n","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y2k2mt%2Fgrouping-n","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y2k2mt%2Fgrouping-n/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y2k2mt%2Fgrouping-n/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y2k2mt%2Fgrouping-n/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/y2k2mt","download_url":"https://codeload.github.com/y2k2mt/grouping-n/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y2k2mt%2Fgrouping-n/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013886,"owners_count":26085325,"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-10-12T02:00:06.719Z","response_time":53,"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":["akka","cats-mtl","dependency-injection","doobie","eff-monad","functional-programming","http4s","monix","scala","zio"],"created_at":"2024-11-09T14:34:43.771Z","updated_at":"2025-10-13T01:20:17.547Z","avatar_url":"https://github.com/y2k2mt.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Grouping-N\n\nA tiny API: Just shuffles the given names.\n\n|project | description|\n|--------|------------|\n|mtl | Sample project of [http4s](https://http4s.org/) + [doobie](https://github.com/tpolecat/doobie) + [cats-effect](https://typelevel.org/cats-effect) with [cats-mtl](https://github.com/typelevel/cats-mtl)|\n|akka   | Sample project of [Akka http](https://doc.akka.io/docs/akka-http/current/index.html) + [Akka (stateful) actor + persistence](https://doc.akka.io/docs/akka/current/typed/actors.html)|\n\nEnjoy!\n\n### Setting up the project\n\n1. [Install Java 8+](https://jdk.java.net/)\n1. Run postgresql database server (e.g. `docker run --rm -d -p 5432:5432 -e POSTGRES_HOST_AUTH_METHOD=trust postgres:13`)\n1. Run `./sbt run` to start the app\n1. Request \n```\ncurl localhost:8080/grouping -H 'Content-Type: application/json' -d '{\"n\": 2,\"members\": [\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\"]}'\n```\n5. And response\n```\n\u003c HTTP/1.1 200 OK\n\u003c Content-Type: application/json\n\u003c Content-Length: 126\n{\n  \"group\": {\n    \"groups\": [\n      {\n        \"members\": [\n          \"8\",\n          \"7\",\n          \"3\",\n          \"2\"\n        ]\n      },\n      {\n        \"members\": [\n          \"5\",\n          \"1\",\n          \"4\",\n          \"6\"\n        ]\n      }\n    ]\n  },\n  \"id\": \"08d6277f-89aa-4da2-b2d6-627cd91fc749\"\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fy2k2mt%2Fgrouping-n","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fy2k2mt%2Fgrouping-n","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fy2k2mt%2Fgrouping-n/lists"}