{"id":17572355,"url":"https://github.com/programmersteve/kafkademo","last_synced_at":"2026-04-11T10:32:49.611Z","repository":{"id":258125520,"uuid":"864370401","full_name":"ProgrammerSteve/kafkaDemo","owner":"ProgrammerSteve","description":"A React, Typescript app that uses socket.io to communicate with a Node.js, Kafka consumer backend. The Textual python app sends info via a post request to a go gin kafka producer backend. The docker compose sets up the Kafka.","archived":false,"fork":false,"pushed_at":"2024-10-16T02:49:23.000Z","size":89,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-17T19:14:33.820Z","etag":null,"topics":["docker-compose","gin","golang","kafka","nodejs","python","react","socket-io","tailwindcss","textual","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/ProgrammerSteve.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":"2024-09-28T03:45:19.000Z","updated_at":"2024-10-17T04:58:38.000Z","dependencies_parsed_at":"2024-10-20T13:35:24.517Z","dependency_job_id":null,"html_url":"https://github.com/ProgrammerSteve/kafkaDemo","commit_stats":null,"previous_names":["programmersteve/kafkademo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ProgrammerSteve/kafkaDemo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProgrammerSteve%2FkafkaDemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProgrammerSteve%2FkafkaDemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProgrammerSteve%2FkafkaDemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProgrammerSteve%2FkafkaDemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ProgrammerSteve","download_url":"https://codeload.github.com/ProgrammerSteve/kafkaDemo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProgrammerSteve%2FkafkaDemo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28131623,"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-12-30T02:00:05.476Z","response_time":64,"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":["docker-compose","gin","golang","kafka","nodejs","python","react","socket-io","tailwindcss","textual","typescript"],"created_at":"2024-10-21T19:03:57.895Z","updated_at":"2025-12-30T20:04:14.953Z","avatar_url":"https://github.com/ProgrammerSteve.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Geting Started\n\n- use docker compose to set up kafka and zookeeper\n- run `docker exec -it kafka /bin/sh` to access the kafka container\n- get to the folders with the commands `cd ./opt/kafka/bin`\n- create a topic called `messages` if not already present\n\n\n## Kafka Related Commands\n\n### Enter kafka\n`docker exec -it kafka /bin/sh`\n\n### Create a kafka topic\n`kafka-topics.sh --create --zookeeper zookeeper:2181 --replication-factor 1 --partitions 1 --topic dummy_topic`\n\n### List kafka topics\n`kafka-topics.sh --list --zookeeper zookeeper:2181`\n\n### Describe a kafka topic\n`kafka-topics.sh --describe --zookeeper zookeeper:2181 --topic dummy_topic`\n\n### Delete a kafka topic\n`kafka-topics.sh --delete --zookeeper zookeeper:2181 --topic dummy_topic`\n\n### Send Message on Producer\n`kafka-console-producer.sh --broker-list kafka:9092 --topic messages`\n\n\u003e {'user_id':1,'recipient_id':2,'message':'Hi.'}\n\u003e {'user_id':2,'recipient_id':1,'message':'Hey.'}\n\n`[ctrl]+c to exit`\n\n### Listen for Messages on Consumer\n`kafka-console-consumer.sh --bootstrap-server kafka:9092 --topic messages`\n\n### Listen for Messages on Consumer, list all previous\n`kafka-console-consumer.sh --bootstrap-server kafka:9092 --topic messages --from-beginning`\n\n\n## Textual TUI\n- A python application made with the textual framework\n- Text User Interface (TUI)\n- https://textual.textualize.io/\n- sends information to the go backend to be relayed to kafka\n\n![Python Textual Kafka App](https://github.com/ProgrammerSteve/kafkaDemo/blob/main/images/pythonTextualKafkaApp.png)\n\n## React Real-time Display\n- Uses socket.io to get feedback from node server\n- The style was created using the ARWES theme library\n- https://next.arwes.dev/docs/develop/react\n\n![React Real-Time Kafka App](https://github.com/ProgrammerSteve/kafkaDemo/blob/main/images/reactRealTimeKafkaApp.png)\n\n\n## Consumer Node Server\n- connects to kafka on localhost:9091 on the 'messages' topic\n- uses socket.io to communicate with the react frontend\n- acts as a consumer for kafka\n\n## Producer Go Server\n- uses the gin framework to set up endpoints\n- connect to kafka on localhost:9091 on the 'messages' topic\n- acts as a producer for kafka","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogrammersteve%2Fkafkademo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprogrammersteve%2Fkafkademo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogrammersteve%2Fkafkademo/lists"}