{"id":19746188,"url":"https://github.com/rybalkin-an/user-app","last_synced_at":"2026-01-25T15:03:26.272Z","repository":{"id":206537793,"uuid":"711450182","full_name":"rybalkin-an/user-app","owner":"rybalkin-an","description":"Testing REST API Spring Boot App with Keycloak, Java 17, Gradle, Junit5, Testcontainer, RestAssured, MockMvc, Wiremock, Integration Testing","archived":false,"fork":false,"pushed_at":"2024-10-08T20:36:08.000Z","size":163,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T12:52:12.713Z","etag":null,"topics":["integration-testing","junit5","keycloak","mocking","mockmvc","rest-api","restassured","spring-boot","testcontainers","unit-testing","wiremock"],"latest_commit_sha":null,"homepage":"","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/rybalkin-an.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}},"created_at":"2023-10-29T10:02:12.000Z","updated_at":"2024-10-08T20:36:12.000Z","dependencies_parsed_at":"2023-11-15T22:43:02.199Z","dependency_job_id":"e834c8ba-8f21-4db8-a0d2-816774b0bc14","html_url":"https://github.com/rybalkin-an/user-app","commit_stats":null,"previous_names":["rybalkin-an/user_app","rybalkin-an/user-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rybalkin-an/user-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rybalkin-an%2Fuser-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rybalkin-an%2Fuser-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rybalkin-an%2Fuser-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rybalkin-an%2Fuser-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rybalkin-an","download_url":"https://codeload.github.com/rybalkin-an/user-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rybalkin-an%2Fuser-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28754807,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T13:59:49.818Z","status":"ssl_error","status_checked_at":"2026-01-25T13:59:33.728Z","response_time":113,"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":["integration-testing","junit5","keycloak","mocking","mockmvc","rest-api","restassured","spring-boot","testcontainers","unit-testing","wiremock"],"created_at":"2024-11-12T02:13:45.368Z","updated_at":"2026-01-25T15:03:26.246Z","avatar_url":"https://github.com/rybalkin-an.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring boot app REST API testing\n\n### Prerequisites\nMake sure you have the following tools installed:\n* Docker [https://www.docker.com/get-started/](https://www.docker.com/get-started/)\n* Java 17 \n* Gradle 8\n\n### Project Dependencies\n* junit 5 [https://junit.org/junit5/](https://junit.org/junit5/)\n* RestAssured [https://rest-assured.io/](https://rest-assured.io/)\n* MockMvc [https://docs.spring.io/spring-framework/reference/testing/spring-mvc-test-framework.html](https://docs.spring.io/spring-framework/reference/testing/spring-mvc-test-framework.html)\n* Testcontainers [https://java.testcontainers.org/](https://java.testcontainers.org/)\n* Wiremock [https://wiremock.org/docs/junit-jupiter/](https://wiremock.org/docs/junit-jupiter/)\n\n---\n\n### Installing Keycloak with Docker and Importing Realm Configuration\n### Step 1: Run Keycloak with Docker\n1. Pull the latest Keycloak Docker image:\n\n```bash\ndocker pull quay.io/keycloak/keycloak:latest\n```\n2. Start the Keycloak container:\n```bash\ndocker run -d --name keycloak \\\n  -e KEYCLOAK_ADMIN=admin \\\n  -e KEYCLOAK_ADMIN_PASSWORD=admin \\\n  -p 8080:8080 \\\n  quay.io/keycloak/keycloak:latest start-dev\n```\n3. Access Keycloak at http://localhost:8080/ and log in using the credentials admin / admin.\n\n### Step 2: Import Realm Configuration\n#### Manual import via Admin Console\n\n1. Access the Keycloak Admin Console at http://localhost:8080/.\n2. Select \"Add Realm\" and upload your realm-export.json file.\n3. Click \"Create\" to complete the import.\n\n---\n\n### Running the Application\nFollow these steps to run the Spring Boot application:\n1. Start Docker containers:\n```bash\ndocker compose up\n```\n2. Run the Spring Boot application:\n```bash\ngradle bootRun\n```\n3. Access the API documentation in Swagger: [http://localhost:8081/swagger-ui/index.html](http://localhost:8081/swagger-ui/index.html)\n4. Access the UI: [http://localhost:8081/users/manage](http://localhost:8081/users/manage)\n\n---\n\n### Running Tests\nExecute the following command to run tests:\n```bash\ngradle clean test\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frybalkin-an%2Fuser-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frybalkin-an%2Fuser-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frybalkin-an%2Fuser-app/lists"}