{"id":22894270,"url":"https://github.com/clearcodehq/it-depends-8","last_synced_at":"2025-03-31T22:38:35.677Z","repository":{"id":69040410,"uuid":"410779868","full_name":"ClearcodeHQ/it-depends-8","owner":"ClearcodeHQ","description":null,"archived":false,"fork":false,"pushed_at":"2021-09-28T11:42:23.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-30T13:37:09.266Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ClearcodeHQ.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":"2021-09-27T07:14:15.000Z","updated_at":"2024-09-10T12:25:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"9c21901b-9882-4e9a-8e82-1f7d2ba168dd","html_url":"https://github.com/ClearcodeHQ/it-depends-8","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/ClearcodeHQ%2Fit-depends-8","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClearcodeHQ%2Fit-depends-8/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClearcodeHQ%2Fit-depends-8/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClearcodeHQ%2Fit-depends-8/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ClearcodeHQ","download_url":"https://codeload.github.com/ClearcodeHQ/it-depends-8/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246552972,"owners_count":20795835,"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":[],"created_at":"2024-12-13T23:17:21.866Z","updated_at":"2025-03-31T22:38:35.671Z","avatar_url":"https://github.com/ClearcodeHQ.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IT Depends #8 CDC Workshop\n\n## Prequisites\n\nTo run this workshop you need several tools installed:\n\n1. The [Docker Engine](https://docs.docker.com/engine/install/)\n1. The [Docker Compose](https://docs.docker.com/compose/install/)\n\n## How to\n\n### Run the application\n\n```sh\n# start all services defined in the docker-compose.yaml\ndocker-compose -f docker-compose.yaml up\n```\n\n### Connect to the database\n\nLinux / macOS (bash):\n\n```sh\ndocker-compose -f docker-compose.yaml exec postgres env PGOPTIONS=\"--search_path=campaigns\" bash -c 'psql -U $POSTGRES_USER postgres'\n```\n\n### Consume messages from the Kafka topic\n\nLinux / macOS (bash):\n\n```sh\ndocker-compose -f docker-compose.yaml exec kafka /kafka/bin/kafka-console-consumer.sh \\\n    --bootstrap-server kafka:9092 \\\n    --from-beginning \\\n    --property print.key=true \\\n    --topic dbserver1.campaigns.customers\n```\n\nWindows (PowerShell):\n\n```PowerShell\ndocker-compose -f docker-compose.yaml exec kafka /kafka/bin/kafka-console-consumer.sh `\n    --bootstrap-server kafka:9092 `\n    --from-beginning `\n    --property print.key=true `\n    --topic dbserver1.campaigns.customers\n```\n\n### List available Kafka topics\n\n```sh\ndocker-compose -f docker-compose.yaml exec kafka /kafka/bin/kafka-topics.sh --bootstrap-server=kafka:9092 --list\n```\n\n### Add Debezium connector\n\nLinux / macOS (bash):\n\n```sh\ncurl -i -X POST -H \"Accept:application/json\" -H  \"Content-Type:application/json\" http://localhost:8083/connectors/ -d @connector-config.json\n```\n\nWindows (PowerShell):\n\n```PowerShell\ncurl -i -X POST -H \"Accept:application/json\" -H  \"Content-Type:application/json\" http://localhost:8083/connectors/ -d @connector-config.json\n```\n\n### List DB connectors\n\nLinux / macOS (bash):\n\n```sh\ncurl -i -X GET -H \"Accept:application/json\" -H  \"Content-Type:application/json\" http://localhost:8083/connectors/\n```\n\nWindows (PowerShell):\n\n```PowerShell\ncurl -i -X GET -H \"Accept:application/json\" -H  \"Content-Type:application/json\" http://localhost:8083/connectors/\n```\n\n## Useful documentation\n\n* [Quick guide to psql / PostgreSQL](docs/psql.md)\n* [Debezium](https://debezium.io/documentation/reference/1.6/index.html)\n* [Debezium PostgreSQL connector](https://debezium.io/documentation/reference/1.6/connectors/postgresql.html)\n* [Kafka](https://kafka.apache.org/)\n\n## TODOs\n\n1. DB diagram\n1. Add connector curl command + Powershell?\n\n## Acknowledgements\n\nFor the workshop we used the config files and images from the [Debezium Team Repositories](https://github.com/debezium). Cheers!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclearcodehq%2Fit-depends-8","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclearcodehq%2Fit-depends-8","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclearcodehq%2Fit-depends-8/lists"}