{"id":16895839,"url":"https://github.com/bnorm/datasite-poc-garden","last_synced_at":"2025-04-05T12:42:30.996Z","repository":{"id":56349368,"uuid":"307897929","full_name":"bnorm/datasite-poc-garden","owner":"bnorm","description":null,"archived":false,"fork":false,"pushed_at":"2020-11-12T22:49:24.000Z","size":757,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-10T23:57:14.324Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","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/bnorm.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}},"created_at":"2020-10-28T03:37:25.000Z","updated_at":"2020-11-29T20:38:04.000Z","dependencies_parsed_at":"2022-08-15T17:01:17.677Z","dependency_job_id":null,"html_url":"https://github.com/bnorm/datasite-poc-garden","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/bnorm%2Fdatasite-poc-garden","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnorm%2Fdatasite-poc-garden/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnorm%2Fdatasite-poc-garden/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnorm%2Fdatasite-poc-garden/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bnorm","download_url":"https://codeload.github.com/bnorm/datasite-poc-garden/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247339135,"owners_count":20923009,"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-10-13T17:26:30.910Z","updated_at":"2025-04-05T12:42:30.980Z","avatar_url":"https://github.com/bnorm.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Architecture\n![garden-architecture](docs/garden-architecture.png)\n\n\n# Port configuration\n|application|port|\n|---|---|\n|gardening-service|9000|\n|iot-gateway|9010|\n|iot-simulator|9011|\n|processor-service|9020|\n|reporting-service|9030|\n|reporting-ui|9031|\n\n### MongoDB configuration\n\nAfter starting the Docker compose file, run the following commands to\nconfiguration the Debezium connection to MongoDB.\n\nConfigure the replication set in MongoDB:\n```shell\ndocker-compose exec mongo /bin/bash -c 'mongo localhost:27017/datasite-poc \u003c\u003c-EOF\n    rs.initiate({\n        _id: \"rs0\",\n        \"version\" : 1,\n        members: [\n            { _id: 0, host: \"localhost:27017\" }\n        ]\n    });\nEOF'\n```\n\nConnection Debezium to MongoDB.\n```shell\ncurl -i -X POST \\\n  -H \"Accept:application/json\" \\\n  -H  \"Content-Type:application/json\" \\\n  http://localhost:8083/connectors/ \\\n  -d '{\n  \"name\": \"mongodb_connector\",\n  \"config\": {\n    \"connector.class\" : \"io.debezium.connector.mongodb.MongoDbConnector\",\n    \"tasks.max\" : \"1\",\n    \"mongodb.hosts\" : \"rs0/mongo:27017\",\n    \"mongodb.name\" : \"mongo\",\n    \"mongodb.members.auto.discover\" : false,\n    \"collection.whitelist\" : \"datasite-poc.*\",\n    \"provide.transaction.metadata\" : true,\n    \"database.history.kafka.bootstrap.servers\" : \"kafka:9092\"\n  }\n}'\n```\n\n### IntelliJ HTTP Requests\n\nCreate a `http-client-private.env.json` file in the project root directory with\nthe following template:\n```json\n{\n  \"\u003cenvironment name\u003e\": {\n    \"user_id\": \"\u003cuser name\u003e\"\n  }\n}\n```\n\nReplace `\u003cenvironment name\u003e` and the `\u003cuser name\u003e` values with appropriate\nvalues. For example, you could replace with `local` and `john` respectively.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbnorm%2Fdatasite-poc-garden","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbnorm%2Fdatasite-poc-garden","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbnorm%2Fdatasite-poc-garden/lists"}