{"id":29961435,"url":"https://github.com/beemi/bonue-service-kafka-example","last_synced_at":"2025-08-03T23:11:01.417Z","repository":{"id":226140515,"uuid":"767855562","full_name":"beemi/bonue-service-kafka-example","owner":"beemi","description":"Kafka bonus service spring boot example","archived":false,"fork":false,"pushed_at":"2024-03-07T02:35:41.000Z","size":92,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-03-07T04:29:27.034Z","etag":null,"topics":[],"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/beemi.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}},"created_at":"2024-03-06T02:34:40.000Z","updated_at":"2024-03-06T02:35:16.000Z","dependencies_parsed_at":"2024-03-09T05:45:26.814Z","dependency_job_id":null,"html_url":"https://github.com/beemi/bonue-service-kafka-example","commit_stats":null,"previous_names":["beemi/bonue-service-kafka-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/beemi/bonue-service-kafka-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beemi%2Fbonue-service-kafka-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beemi%2Fbonue-service-kafka-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beemi%2Fbonue-service-kafka-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beemi%2Fbonue-service-kafka-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beemi","download_url":"https://codeload.github.com/beemi/bonue-service-kafka-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beemi%2Fbonue-service-kafka-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268625009,"owners_count":24280188,"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-08-03T02:00:12.545Z","response_time":2577,"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":[],"created_at":"2025-08-03T23:10:44.515Z","updated_at":"2025-08-03T23:11:01.401Z","avatar_url":"https://github.com/beemi.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 🚀 Kafka Consumer Spring Boot Application\n\nThis is a simple Spring Boot application that consumes messages from a Kafka topic and saves them to a MySQL database.\n\n### 🛠️ Technologies\n\n- Java 17\n- Spring Boot\n- Kafka\n- MySQL\n- Docker\n- Docker Compose\n- Lombok\n- MapStruct\n- Swagger\n- JUnit 5\n\n### 🚀 Run the application\n\nIt is necessary to have Docker and Docker Compose installed on your machine.\n\n```bash\ndocker-compose up -d\n```\n\nThe application will be available at [http://localhost:8090](http://localhost:8090).\n\n### 📦 Kafka Producer\n\n## Bonus message\n\n```json\n{\n  \"bonusType\": \"WelcomeBonus\",\n  \"bonusCode\": \"WELCOME2023\",\n  \"bonusStatus\": \"ACTIVE\",\n  \"bonusAmount\": \"200\",\n  \"bonusCurrency\": \"USD\",\n  \"createdAt\": \"2023-01-01T00:00:00Z\",\n  \"lastModifiedTime\": \"2023-02-01T00:00:00Z\",\n  \"extraDetails\": {\n    \"extraDetails1\": \"First deposit bonus\",\n    \"extraDetails2\": \"Valid until 31/12/2023\",\n    \"extraDetails3\": \"Applies to new users only\"\n  }\n}\n```\n\n### Run Just Kafka services\ndelete orphan docker containers\n```Bash\ndocker-compose down --remove-orphans\n```\n\n\n```bash\ndocker-compose -f docker-compose.kafka.yml up -d\n```\n\nKafka can be accessed at `localhost:9092`, also available via the Kafka UI at http://localhost:8080/.\n\n### 📖 Swagger API Documentation\n\n🔍 Access the OpenAPI documentation to explore and test the API endpoints:\n\n- Swagger UI: [http://localhost:8090/swagger-ui/index.html](http://localhost:8090/swagger-ui/index.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeemi%2Fbonue-service-kafka-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeemi%2Fbonue-service-kafka-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeemi%2Fbonue-service-kafka-example/lists"}