{"id":18398789,"url":"https://github.com/mongodb-developer/get-started-cxx","last_synced_at":"2026-04-13T18:02:17.211Z","repository":{"id":53583574,"uuid":"317741818","full_name":"mongodb-developer/get-started-cxx","owner":"mongodb-developer","description":"Repository to help getting started with MongoDB C++ driver connecting to MongoDB Atlas","archived":false,"fork":false,"pushed_at":"2023-09-15T06:43:26.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-06-03T21:34:18.356Z","etag":null,"topics":["cxx","docker","get-started","mongodb","mongodb-atlas","tutorial"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mongodb-developer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-12-02T03:46:20.000Z","updated_at":"2024-09-25T23:30:01.000Z","dependencies_parsed_at":"2024-12-24T11:23:40.166Z","dependency_job_id":"c8f930d0-7503-4a32-906d-50341189ed40","html_url":"https://github.com/mongodb-developer/get-started-cxx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mongodb-developer/get-started-cxx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-developer%2Fget-started-cxx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-developer%2Fget-started-cxx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-developer%2Fget-started-cxx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-developer%2Fget-started-cxx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mongodb-developer","download_url":"https://codeload.github.com/mongodb-developer/get-started-cxx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-developer%2Fget-started-cxx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31764317,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cxx","docker","get-started","mongodb","mongodb-atlas","tutorial"],"created_at":"2024-11-06T02:24:25.478Z","updated_at":"2026-04-13T18:02:17.193Z","avatar_url":"https://github.com/mongodb-developer.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Get-Started C++\n\nRepository to help getting started with MongoDB C++ driver connecting to MongoDB Atlas.\n\n## Information\n\nThis Get-Started project uses [MongoDB C++ driver](https://docs.mongodb.com/drivers/cxx) version 3.6.6 by default. Although you can change the driver version, the provided code example was only tested against the default version of MongoDB driver. There is no guarantee that the code sample will work for all possible versions of the driver.\n\n## Pre-requisites \n\n### Docker \n\nHave Docker running on your machine. You can download and install from: https://docs.docker.com/install/\n\n### MongoDB Atlas\n\nIn order to execute the code example, you need to specify `MONGODB_URI` environment variable to connect to a MongoDB cluster. If you don't have any you can create one by signing up [MongoDB Atlas Free-tier M0](https://docs.atlas.mongodb.com/getting-started/). \n\n\n##  Execution Step\n\nExecute the helper shell script followed by the MongoDB URI that you would like to connect to. \n```\n./get-started.sh \"mongodb+srv://usr:pwd@example.mongodb.net/dbname?retryWrites=true\"\n```\n\n## Changing The Driver Version \n\nThe Docker image has been built with a specific version. If you would like to use a different version, you could build a new image. Example: \n\n```\ndocker build . -t start-cxx --build-arg DRIVER_VERSION=3.6.5 \n```\n\nThis will build a docker image with a tag name `start-cxx`. \nOpen the helper script `get-started.sh` in an editor of your choice, and change the value of `DOCKER_IMAGE` to `start-cxx` and save the file. Execute the helper script followed by the MongoDB URI. \n\n\n## Tutorials\n\n* [MongoDB C++ driver documentation](http://mongocxx.org/mongocxx-v3/tutorial/)\n\n## About \n\nThis project is part of the MongoDB Get-Started code examples. Please see [get-started-readme](https://github.com/mongodb-developer/get-started-readme) for more information. \n\n## Disclaimer\n\nThis software is not supported by [MongoDB, Inc](https://www.mongodb.com)\nunder any of their commercial support subscriptions or otherwise. Any usage is at your own risk.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongodb-developer%2Fget-started-cxx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmongodb-developer%2Fget-started-cxx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongodb-developer%2Fget-started-cxx/lists"}