{"id":23338332,"url":"https://github.com/abhirockzz/kafka-websocket","last_synced_at":"2025-04-09T22:31:12.197Z","repository":{"id":79125164,"uuid":"92040366","full_name":"abhirockzz/kafka-websocket","owner":"abhirockzz","description":"kafEEne: Kafka + Websocket","archived":false,"fork":false,"pushed_at":"2017-05-22T11:02:21.000Z","size":45,"stargazers_count":23,"open_issues_count":0,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-24T00:24:36.459Z","etag":null,"topics":["docker","javaee","jsonb","jsr356","kafeene","kafka","websocket"],"latest_commit_sha":null,"homepage":"https://abhirockzz.wordpress.com/2017/05/22/kafeene-1-websocket-kafka","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/abhirockzz.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":"2017-05-22T10:16:44.000Z","updated_at":"2024-01-13T23:56:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"ea8e9a33-d314-45ae-9769-16d17a6da9d4","html_url":"https://github.com/abhirockzz/kafka-websocket","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhirockzz%2Fkafka-websocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhirockzz%2Fkafka-websocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhirockzz%2Fkafka-websocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhirockzz%2Fkafka-websocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abhirockzz","download_url":"https://codeload.github.com/abhirockzz/kafka-websocket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248123452,"owners_count":21051476,"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","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":["docker","javaee","jsonb","jsr356","kafeene","kafka","websocket"],"created_at":"2024-12-21T03:13:37.637Z","updated_at":"2025-04-09T22:31:12.178Z","avatar_url":"https://github.com/abhirockzz.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Check [the blog](https://abhirockzz.wordpress.com/2017/05/22/kafeene-1-websocket-kafka) for more details\r\n\r\n## Start with Docker Compose\r\n\r\n- `git clone https://github.com/abhirockzz/kafka-websocket.git`\r\n- `cd dashboard` and `mvn clean install` - creates `kafka-websocket.war` in `target` directory\r\n- `cd producer` and `mvn clean install` - creates `kafka-producer.jar` in `target` directory\r\n- `cd ..` and `docker-compose up --build` - starts Kafka, Zookeeper, Payara and Producer containers (you can switch to any other [Java EE runtime](https://github.com/abhirockzz/kafka-websocket/blob/master/dashboard/Dockerfile#L1))\r\n\t- Kafka accessible @ `9092`\r\n\t- Zookeeper @ `2181`\r\n\t- Producer starts pushing records to Kafka topics (auto creates topic-1, topic-2)\r\n\t- Port `8080` exposed from Payara container\r\n\r\nWait for the containers to startup before you move to the testing part...\r\n\r\n## Test\r\n\r\n- `docker-machine ip` - get the IP address of your Docker host. Let's call it `APP_HOST`\r\n- Open your browser and go to `http://\u003cAPP_HOST\u003e:8080/kafka-websocket/`. Enter topic-1 or topic-2 in `subscription` input text box. You will start seeing the records being produced by the producer for that topic\r\n\t- You can open multiple such clients/browser windows/tabs and subscribe to either of these topics\r\n\r\n![](dashboard.jpg)\r\n\r\n- `docker-compose down -v` once you're done....\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhirockzz%2Fkafka-websocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhirockzz%2Fkafka-websocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhirockzz%2Fkafka-websocket/lists"}