{"id":16795387,"url":"https://github.com/js-kyle/mongodb-changestream-demo","last_synced_at":"2025-03-17T03:14:01.080Z","repository":{"id":227364802,"uuid":"770591223","full_name":"js-kyle/mongodb-changestream-demo","owner":"js-kyle","description":"Demo repository for my talk on MongoDB Change Streams","archived":false,"fork":false,"pushed_at":"2024-03-12T21:42:02.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T12:46:43.641Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/js-kyle.png","metadata":{"files":{"readme":"README.md","changelog":"change-stream.js","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-11T20:13:28.000Z","updated_at":"2024-03-12T21:43:08.000Z","dependencies_parsed_at":"2024-03-12T23:55:19.290Z","dependency_job_id":null,"html_url":"https://github.com/js-kyle/mongodb-changestream-demo","commit_stats":null,"previous_names":["js-kyle/mongodb-changestream-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-kyle%2Fmongodb-changestream-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-kyle%2Fmongodb-changestream-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-kyle%2Fmongodb-changestream-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-kyle%2Fmongodb-changestream-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/js-kyle","download_url":"https://codeload.github.com/js-kyle/mongodb-changestream-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243965782,"owners_count":20375918,"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-13T09:16:13.552Z","updated_at":"2025-03-17T03:14:01.056Z","avatar_url":"https://github.com/js-kyle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MongoDB Change Stream demo\n\n## Setup\n\n### Prerequisites\n\n**Start MongoDB container using Docker**\n\n```bash\ndocker run -d --rm -p 27017:27017 --name mongo1 mongo:7 mongod --replSet rs0 --bind_ip_all\n```\n\n\n**Configure MongoDB Replica Set**\n\n```bash\ndocker exec mongo1 mongosh --quiet --eval \"\\\n  var rs = rs.initiate({\\\n    '_id': 'rs0',\\\n    'members': [{'_id': 0, 'host': 'localhost:27017'}]\\\n  }).ok;\\\n  print('Replica set init result', rs);\n\"\n```\n\n**Install Node.js dependencies**\n\n```bash\nyarn\n```\n\n**Run the Demo Change Stream**\n\n```bash\nyarn start\n```\n\nSeed the database and make updates using the VSCode MongoDB Playgrounds.\n\n### Helpful links\n\n- [MongoDB Change Streams overview](https://www.mongodb.com/docs/manual/changeStreams)\n- [Change Streams basics](https://www.mongodb.com/basics/change-streams)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjs-kyle%2Fmongodb-changestream-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjs-kyle%2Fmongodb-changestream-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjs-kyle%2Fmongodb-changestream-demo/lists"}